You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by Apache Wiki <wi...@apache.org> on 2006/02/08 16:57:44 UTC
[Ws Wiki] Update of "FrontPage/Axis/StyleInWSDDAndWSDL" by DavanumSrinivas
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by DavanumSrinivas:
http://wiki.apache.org/ws/FrontPage/Axis/StyleInWSDDAndWSDL
New page:
The WSDL style has two possible options: RPC and Document. (If neither is specified, it defaults to "document".) This attribute refers to the SOAP message style -- whether the SOAP Body contains a document defined by a schema or whether the Body is constructed dynamically based on the method name and a set of parameter types. WSDL has another attribute, "use", which indicates whether the message structure is defined by a schema (use="literal") or generated using the SOAP encoding data model (use="encoded"). Valid combinations of these two attributes include document/literal, rpc/literal, and rpc/encoded.
The WSDD style has four options: RPC, WRAPPED, DOCUMENT, MESSAGE. (If no style is specified, it defaults to "RPC".) This style attribute encompasses both message style and programming style. There are three types of programming style:
* a parameterized invocation API (XML parameters are mapped to individual Java classes):
'''return method(arg1, arg2)'''
* an object-based invocation API (XML parameters are collectively mapped to a bean):
'''return method (object)'''
* a messaging API (XML messages are mapped to DOM):
'''Document method(Document)'''
RPC produces rpc/encoded with a parameterized API (you can use the "use" attribute to specify that you want rpc/literal)
* WRAPPED produces document/literal with a parameterized API
* DOCUMENT produces document/literal with an object-based API
* MESSAGE produces document/literal with a messaging API
For more information on the WRAPPED style, see Anne's blog:
http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html