Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsdl2java protocol error

rich all
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ortType name="AccountingIF">
<wsdl peration name="getAccountingResponse" parameterOrder="req">
<wsdl:input name="getAccountingResponseRequest" message="impl:getAccountingResponseRequest"/>
<wsdl utput name="getAccountingResponseResponse" message="impl:getAccountingResponseResponse"/>
</wsdl peration>
</wsdl ortType>
<wsdl:binding name="AccountingIFSoapBinding" type="impl:AccountingIF">
<wsdlsoap:binding style="rpc" transport=""/>
<wsdl peration name="getAccountingResponse">
<wsdlsoap peration soapAction=""/>
<wsdl:input name="getAccountingResponseRequest">
<wsdlsoap:body use="encoded" encodingStyle="" namespace=""/>
<wsdl utput name="getAccountingResponseResponse">
<wsdlsoap:body use="encoded" encodingStyle="" namespace=""/>
</wsdl utput>
</wsdl peration>
<wsdl:service name="AccountingIFService">
<wsdl ort name="AccountingIF" binding="impl:AccountingIFSoapBinding">
<wsdlsoap:address location="http://localhost:8080/axis/services/AccountingIF"/>
</wsdl ort>

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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic