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?