Document-style doesn't call for one single root element. Messages (and
supporting schema defs) are most often designed on a per method basis.
If you are designing the entire message that gets dispatched (e.g.
CreateThisRequest, UpdateThatRequest) to the method on receiving it,
using the Bare parameter style is preferred, else the with wrapped
parameter style, the method name will be used to wrap the method
parameters in the service description. If you are designing a service
that just accepts command strings (and possibly other arbitrary data),
then does something according to the particular command, then perhaps a
single method is appropriate. Hopefully I understood the question.
Adam
Denis Goeury wrote:
We are currently designing a new web service (and its XML Schema) which
is intended to execute a set of commands like "create this", "update
that"... Should all these commands be sent under a single root XML
element and therefore only require a single method in XFire's service
class? What's the most common way to design/implement this type of
service?
Thanks in advance,
-denis