RE: passing objects to web service

I don't believe Arthur was advocating returning a string.
 
Speaking for myself, I think you are mixing layers. The string / XML is the transmission format. If you are using an RPC model, then you should be thinking of the internal model when defining the RPC signature, not the way in which it is transmitted. You should define a structured object that you want returned, and specify that in the method's signature.
 
Assuming that you have a structured object type called, for example, MyStructuredType, then the signature should be:
 
   public MyStructuredType exampleMethod()
 
The fact that this type will be transmitted as XML is irrelevant to the method signature. That fact only becomes relevant when defining the WSDL that will describe the call. That's a different layer.
 
Does that clarify things?
 
Tony Rogers

________________________________

From: www-ws-desc-request@w3.org on behalf of wakeup (sent by Nabble.com)
Sent: Mon 03-Apr-06 17:09
To: www-ws-desc@w3.org
Subject: Re: passing objects to web service





Then you recomend this?
Returning a XML string?   public string exampleMethod()

But with this option, you spend time formatin xml to objects, I'm not sure.
--
View this message in context: http://www.nabble.com/passing-objects-to-web-service-t1374219.html#a3720932
Sent from the w3.org - www-ws-desc forum at Nabble.com.

Received on Monday, 3 April 2006 09:37:48 UTC