wsdl2java protocol error


XML & Web services: wsdl2java protocol error

  1. wsdl2java protocol error (2 messages)

    I have configured axis and Java environment no problems.

    A wsdl file has been provided with which I want to use the utility to generate the Java stubs and classes with which to test against.
    However when running the utilty against the wsdl file I get the following error:- no protocol: AccountingIF.wsdl

    Below is the relevant sections from the wsdl document :-
    <wsdl:portType name="AccountingIF">
    <wsdl:operation name="getAccountingResponse" parameterOrder="req">
    <wsdl:input name="getAccountingResponseRequest" message="impl:getAccountingResponseRequest"/>
    <wsdl:output name="getAccountingResponseResponse" message="impl:getAccountingResponseResponse"/>
    <wsdl:binding name="AccountingIFSoapBinding" type="impl:AccountingIF">
    <wsdlsoap:binding style="rpc" transport=""/>
    <wsdl:operation name="getAccountingResponse">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getAccountingResponseRequest">
    <wsdlsoap:body use="encoded" encodingStyle="" namespace=""/>
    <wsdl:output name="getAccountingResponseResponse">
    <wsdlsoap:body use="encoded" encodingStyle="" namespace=""/>
    <wsdl:service name="AccountingIFService">
    <wsdl:port name="AccountingIF" binding="impl:AccountingIFSoapBinding">
    <wsdlsoap:address location="http://localhost:8080/axis/services/AccountingIF"/>

    I am running with the command :-
    java org.apache.axis.wsdl.WSDL2Java AccountingIF.wsdl

    as per the document on the apache site.

    Many thanks in advance to anyone with wizdom to share.

    Threaded Messages (2)

  2. Re: wsdl2java protocol error[ Go to top ]

    Maybe it is because of a namespace declaration shown by you? Maybe you put some wrong URL in a xmlns:something declaration and java2wsdl is failing to parse it
  3. wsdl2java protocol error[ Go to top ]

    Thanks for some feedback. Just out of interest the namespace declarations being used are:-

    <wsdl:definitions targetNamespace=""

    Any other thoughts ?