Hi,
I'm supposed to be testing a webservice that is returning more than one
value (An error code and a session id).
The testing tool that I have can't seem to use the webservice because the
session id return value is defined as a ByRef output parameter of the
WebMethod. The error code is returned as the result of calling the WebMethod
The developer is telling me that using output parameters is the best method
of returning two values - do you agree with this ?
I'm confused as to how a remote client can supply a ByRef output parameter
to a WebService. Your solution of building a single object sounds more
logical to me.
"JRadical" wrote:
You probably wan't to be thinking "document/literal" not rpc. Instead
of thinking of returing a primitive || array, think Object. Ideally
Your webservice should take one Object parameter and return
one Object. The return object can contain as many objects/fields/arrays
you require. In short, just create a domain
object with an arraylist, this object will be your return type.
Best regards.
JRadical
"Military Smurf" wrote:
I'm interested in writing a web service that will return more than one value.
What's the best way to accomplish this? I was wondering if an array would
be best, but I'd like to know if there is a better way.