I'm working on a project which is being developed on java technology using jsf, servlets and jsp but my service is a wcf service. I'm using netbeans 7.1 as my editor. One problem i'm facing is that I have one method in my service which returns a generic List but when the data transfers over the wire I always get it as an array of object. How to get the output in the form of generic List in my java application. I know how to do it in .net but not in java.
Kindly if any one knows plz let me know asap.
Thanking you,
Vishal Gilbile.

Harshal JumlePosted Feb 21, 2013, 4:47 AM
Here is the code part
using (dbContext context = new dbContext()) {
IQueryable
List
WcfFSMSer.Win7MobileServiceClient client = new WcfFSMSer.Win7MobileServiceClient();
client.TestFunctionAsync(whatParamToSendForSendingFewRows);
client.TestFunctionCompleted += new
EventHandler<WcfFSMSer.TestFunctionCompletedEventArgs>(client_TestFunctionCompleted);
}
void client_TestFunctionCompleted(object sender, WcfFSMSer.TestFunctionCompletedEventArgs e) { }
I am able to get all tasks list in this variable List allTasksStatus. But the method is not accepting any collection object.
How to send these values from WP7 to WCF?
Thanks in advance
Hemant SrivastavaPosted Feb 18, 2013, 1:47 PM
Vishal GilbilePosted Feb 17, 2013, 1:13 AM
My email address is [email protected]
[email protected]
With Regards,
Vishal Gilbile.
Hemant SrivastavaPosted Feb 15, 2013, 1:56 PM
svcutil /out:YourServiceClient.cs /config:app.config /collectionType:System.Collections.Generic.List`1 net.tcp://SERVER_NAME:5361/WCFServices/WCFService/mex