I have
<types> <schema ...> <complexType name="paraListType"> <sequence> <element name="username" type="string" nillable="true"/> <element name="password" type="string" nillable="true"/> <element name="operationName" type="string" nillable="true"/> <element name="inputXML" type="string" nillable="true"/> </sequence> </complexType> <complexType name="responseType"> <sequence> <element name="result" type="string" nillable="true"/> </sequence> </complexType> <element name="paraList2" type="tns:paraListType"/> <element name="responseXML" type="tns:responseType"/> </schema> </types> <message name="attachRequest"> <part name="parameters" element="ns2:paraList2"/> <part name="attachmentContents" type="xsd:string"/> </message> <message name="attachResponse"> <part name="result" element="ns2:responseXML"/> </message> <portType name="TransmulatorInterface"> <operation name="invokeAttach"> <input message="tns:attachRequest"/> <output message="tns:attachResponse"/> </operation> </portType>
Exception in thread "main" org.jboss.ws.WSException: Unable to unwrap parameters, wrapper element name must match operation name. operationName=invokeAttach elementName=paraList2 at org.jboss.ws.tools.WSDLToJava.appendParameters(WSDLToJava.java:421) at org.jboss.ws.tools.WSDLToJava.appendDocParameters(WSDLToJava.java:387)
I will add the section number from the spec to the message, the following post is where I raised the actual validation requrements: -
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=97638