Skip to Content
avatar image
Former Member

Web Service : by reference objects

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 17, 2007 at 12:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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)