0 Replies Latest reply on Feb 14, 2008 4:48 AM by Roland Stieglmaier

    org.jboss.ws.WSException: Cannot obtain method parameter map

    Roland Stieglmaier Newbie

      Hello,

      I am trying to develop a webservice from a wsdl file using jboss 4.0.5 GA. The wsdl file contains a description for method without parameters, like getToken(). If I generate the java code with wscompile form Netbeans 5.5 still everthing is OK. But if I deploy I got the following exception:


      org.jboss.ws.WSException: Cannot obtain method parameter mapping for message part 'param' in wsdl operation: getToken

      I hope someone could help me!
      Thanks a lot!

      The wsdl file:

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions
       xmlns="http://schemas.xmlsoap.org/wsdl/"
       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:tns="http://com/gd/xcomm/tokengen"
       xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
       xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
       xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
       name="tokenGen"
       targetNamespace="http://com/gd/xcomm/tokengen">
      
       <types>
       <xsd:schema targetNamespace="http://com/gd/xcomm/tokengen" xmlns:tns="http://com/gd/xcomm/tokengen">
       <xsd:complexType name="PictureToken">
       <xsd:sequence>
       <xsd:element name="imageId" type="xsd:string"></xsd:element>
       <xsd:element name="userId" type="xsd:string"></xsd:element>
       <xsd:element name="timestamp" type="xsd:string"></xsd:element>
       <xsd:element name="hash" type="xsd:string"></xsd:element>
       </xsd:sequence>
       </xsd:complexType>
       </xsd:schema>
      
       <xsd:schema targetNamespace="http://com/gd/xcomm/tokengen" xmlns:tns="http://com/gd/xcomm/tokengen">
       <!--xsd:complexType name="noparam"/-->
       <xsd:element name="noparam"/>
       </xsd:schema>
      
       </types>
      
       <message name="OperationRequest">
       <!--part name="param" type="tns:noparam"/-->
       <part name="param" element="tns:noparam"/>
       </message>
      
       <message name="OperationReply">
       <part name="returnvalue" type="tns:PictureToken"/>
       </message>
      
       <portType name="tokenGenPortType">
      
       <operation name="getToken">
       <input name="input1" message="tns:OperationRequest"/>
       <output name="output1" message="tns:OperationReply"/>
       </operation>
      
       </portType>
      
       <binding name="tokenGenBinding" type="tns:tokenGenPortType">
       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
      
       <operation name="getToken">
       <soap:operation soapAction="http://com/gd/xcomm/tokengen/getToken" style="rpc"/>
       <input name="input1">
       <soap:body use="literal" namespace="http://com/gd/xcomm/tokengen"/>
       </input>
       <output name="output1">
       <soap:body use="literal" namespace="http://com/gd/xcomm/tokengen"/>
       </output>
       </operation>
      
       </binding>
      
       <service name="tokenGenService">
       <port name="tokenGenPort" binding="tns:tokenGenBinding">
       <soap:address location="http://localhost:8080/tokenGenService/tokenGenPort"/>
       </port>
       </service>
      
      </definitions>