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.


Hemant SrivastavaRank #581 · 4.2K reputationPosted Feb 15, 2013, 8:56 AM EST
svcutil /out:YourServiceClient.cs /config:app.config /collectionType:System.Collections.Generic.List`1 net.tcp://SERVER_NAME:5361/WCFServices/WCFService/mex
Vishal GilbileRank #268 · 9.4K reputationPosted Feb 16, 2013, 8:13 PM EST
My email address is [email protected]
[email protected]
With Regards,
Vishal Gilbile.
Hemant SrivastavaRank #581 · 4.2K reputationPosted Feb 18, 2013, 8:47 AM EST
Harshal Jumle15 reputationPosted Feb 20, 2013, 11:47 PM EST
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