on 05-17-2007 1:03 PM
Hi everyone,
Is there a way to return more than one object via a web service ?
For example, can I pass 2 tables to the web service method and get those 2 tables back with some changes ?
callWebServiceMethod(ref table1, ref table2);
Thanks.
Hi,
I don't think you can return two values.
Create a class that is a wrapper for the two tables. Return this wrapper object from the method callWebServiceMethod(....)
Regards,
Ashwani Kr Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you create WS based on some java code you (or tools included in nwds) describes WS in terms of WS specifications. So clients has no idea about WS implementation.
In yours case C# client will see particular ws method with input and output structures. Output structure will contain another two structurs (these structures will be mapped on your java classes when client call will be recieved)
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.