File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes wsdl2java protocol error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl2java protocol error" Watch "wsdl2java protocol error" New topic
Author

wsdl2java protocol error

rich all
Greenhorn

Joined: Apr 19, 2005
Posts: 1
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:-

java.net.MalformedURLException: 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="http://schemas.xmlsoap.org/soap/http"/>
<wsdl peration name="getAccountingResponse">
<wsdlsoap peration soapAction=""/>
<wsdl:input name="getAccountingResponseRequest">
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://external.aaa.base.vas"/>
</wsdl:input>
<wsdl utput name="getAccountingResponseResponse">
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://external.aaa.base.vas"/>
</wsdl utput>
</wsdl peration>
</wsdl:binding>
<wsdl:service name="AccountingIFService">
<wsdl ort name="AccountingIF" binding="impl:AccountingIFSoapBinding">
<wsdlsoap:address location="http://localhost:8080/axis/services/AccountingIF"/>
</wsdl ort>
</wsdl:service>

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: wsdl2java protocol error
 
Similar Threads
Use Web Service
WSDL issues
Please Help to write client for Webservice
creating web services from wsdl on axis platforms using xmbeans
Please help, Axis problem