[1667080 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

annotations can break document literal wrapped WSDL style

It's best practice for interoperability to write your WSDL in document literal wrapped style. The "wrapped" is merely a convention imposed upon the document literal style. The linked article above outlines these conventions.

Be very carful about this one especially:
An input wrapper element must be defined as a complex type that is a sequence of elements.

The Wsdl2Java tool from Axis 1.4 is sensitive even on <xsd:annotation> elements within the complexType and will subsequently generate the Style DOCUMENT instead of WRAPPED . So the operation name will be ommitted from your SOAP messages! Whether it is offically correct to interprete the specification that much by the letter or not, I don't know. But from experience at least SAP PI and TIBCO seem to behave the same way.

posted on 2011-08-09 17:36 UTC in Code | 0 comments | permalink