Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-441

Java2WSDL ignores @WebMethod

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-1.0RC3
    • None
    • tools-jaxrpc
    • None

      See jsr-181 4.2

      The expected wsdl is something like

      <portType name="MyWebService">
      <operation name="echoString"/>
      <input message="echoString"/>
      <output message="echoStringResponse"/>
      </operation>
      </portType>

      <binding name="PingServiceHttpSoap">
      <operation name="echoString">
      <soap:operation soapAction="urn:EchoString"/>
      </operation>
      </binding>

      The actual generated WSDL is

      <definitions name="MyWebServiceService" targetNamespace="http://webmethod.jsr181.ws.test.jboss.org/jaws" xmlns:tns="http://webmethod.jsr181.ws.test.jboss.org/jaws" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
      <types>
      </types>
      <message name="MyWebService_echoResponse">
      <part name="result" type="xsd:string"/>
      </message>
      <message name="MyWebService_noWebMethod">
      <part name="String_1" type="xsd:string"/>
      </message>
      <message name="MyWebService_noWebMethodResponse">
      <part name="result" type="xsd:string"/>
      </message>
      <message name="MyWebService_echo">
      <part name="String_1" type="xsd:string"/>
      </message>
      <portType name="MyWebService">
      <operation name="echo" parameterOrder="String_1">
      <input message="tns:MyWebService_echo"/>
      <output message="tns:MyWebService_echoResponse"/>
      </operation>
      <operation name="noWebMethod" parameterOrder="String_1">
      <input message="tns:MyWebService_noWebMethod"/>
      <output message="tns:MyWebService_noWebMethodResponse"/>
      </operation>
      </portType>
      <binding name="MyWebServiceBinding" type="tns:MyWebService">
      <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
      <operation name="echo">
      <soap:operation soapAction=""/>
      <input>
      <soap:body use="literal" namespace="http://webmethod.jsr181.ws.test.jboss.org/jaws"/>
      </input>
      <output>
      <soap:body use="literal" namespace="http://webmethod.jsr181.ws.test.jboss.org/jaws"/>
      </output>
      </operation>
      <operation name="noWebMethod">
      <soap:operation soapAction=""/>
      <input>
      <soap:body use="literal" namespace="http://webmethod.jsr181.ws.test.jboss.org/jaws"/>
      </input>
      <output>
      <soap:body use="literal" namespace="http://webmethod.jsr181.ws.test.jboss.org/jaws"/>
      </output>
      </operation>
      </binding>
      <service name="MyWebServiceService">
      <port name="MyWebServicePort" binding="tns:MyWebServiceBinding">
      <soap:address location="http://TDDELL:8080/jbossws-jsr181-webmethod/TestService"/>
      </port>
      </service>
      </definitions>

              tdiesler@redhat.com Thomas Diesler
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: