1 Reply Latest reply on Jan 12, 2007 4:55 AM by dlofthouse

    doclit request message element not equal to operation name

    thomas.diesler

      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>
      


      When running tools I get

      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)
      


      Do we have a reference to the relevant part in a spec?

      Generally, we please document (read MUST) why we make assertions like this. A future version of the spec might invalidate the assertion.