I've been assigned to help us migrate from xFire to CXF. Our old Web Services model was' RPC Encoded' and we need to publish/serve a WSDL in Document Literal format. I've hunted for several days researching this topic and running all kinds of example services, etc but finally fell on a good resource here at muleSource: http://www.mulesource.org/display/MULE2USER/Building+a+CXF+Web+Service
None of the other sites explained CXF and the SOAPBinding annotation very well.
Answer:
To specify that a service should be in Document Literal format, use the @SOAPBinding annotation.
- import javax.jws.soap.SOAPBinding;
- @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
use=SOAPBinding.Use.LITERAL,
parameterStyle=SOAPBinding.ParameterStyle.BARE)
No comments:
Post a Comment