Hi,
I get an error when the wsdl is passed by wsdl2java
When I use wsdl2java on my wsdl I get this error:
java.net.MalformedURLException: no protocol: src/java/TrackerService.wsdl
I have looked and looked, comared it with wsdls that do work and check
up on internet resources and I can't find anything wrong with it. Can
someone please have a look and see if they can find anything wrong with
it?
Thanks in advance, the wsdl is below,
Patrick
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.xchanging.com/wsdl/claimtrack"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:impl="http://www.xchanging.com/wsdl/claimtrack"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:intf="http://www.xchanging.com/wsdl/claimtrack"
xmlns:exception="http://www.xchanging.com/types/exception"
xmlns:tns="http://www.xchanging.com/types/claimtrack"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<!-- data namespace decleration -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:data="" href="http://www.xchanging.com/types/data">http://www.xchanging.com/types/data"
targetNamespace="http://www.xchanging.com/types/data"
elementFormDefault="qualified">
<xsd:complexType name="doDepartureParameters">
<xsd:sequence>
<xsd:element name="barcode"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="doArrivalParameters">
<xsd:sequence>
<xsd:element name="barcode"
type="xsd:string"/>
<xsd:element name="brokerCode"
type="xsd:string"/>
<xsd:element name="brokerRef"
type="xsd:string"/>
<xsd:element name="busID"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="doDocManageParameters">
<xsd:sequence>
<xsd:element name="depID"
type="xsd:int" nillable="true" />
<xsd:element name="busID"
type="xsd:int" nillable="true" />
<xsd:element name="barcode"
type="xsd:string"/>
<xsd:element name="brokerCode"
type="xsd:string"/>
<xsd:element name="brokerRef"
type="xsd:string" nillable="true" />
<xsd:element name="xcsCFU"
type="xsd:int" nillable="true" />
<xsd:element
name="xcsClaimRef" type="xsd:string" nillable="true" />
<xsd:element name="dateOfLoss"
type="xsd:long" nillable="true" />
<xsd:element name="osnd"
type="xsd:string"/>
<xsd:element
name="internalFileRef" type="xsd:string" nillable="true" />
<xsd:element name="comments"
type="xsd:string" nillable="true" />
<xsd:element name="statusId"
type="xsd:int" />
<xsd:element
name="currUCRCount" type="xsd:int" nillable="true" />
<xsd:element
name="transactionNumber" type="xsd:string"/>
<xsd:element
name="sequenceNumber" type="xsd:string"/>
<xsd:element name="userId"
type="xsd:string" nillable="true" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="response">
<xsd:sequence>
<xsd:element name="response"
type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<!-- EXCEPTION namespace decleration -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:exception="http://www.xchanging.com/types/exception"
targetNamespace="http://www.xchanging.com/types/exception"
elementFormDefault="qualified">
<xsd:complexType name="trackerJavaException">
<xsd:sequence>
<xsd:element
name="exceptionName" type="xsd:string" nillable="true" />
<xsd:element
name="exceptionDetails" type="xsd:string" nillable="true" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="databaseErrorException">
<xsd:sequence>
<xsd:element name="errorCode"
type="xsd:string" nillable="true" />
<xsd:element name="message"
type="xsd:string" nillable="true" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<!-- TNS namespace decleration -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.xchanging.com/types/claimtrack"
xmlns:data="" href="http://www.xchanging.com/types/data">http://www.xchanging.com/types/data"
xmlns:array="http://www.xchanging.com/types/array"
xmlns:exception="http://www.xchanging.com/types/exception"
targetNamespace="http://www.xchanging.com/types/claimtrack"
elementFormDefault="qualified">
<xsd:import namespace="http://www.xchanging.com/types/array" />
<xsd:import namespace="http://www.xchanging.com/types/data" />
<xsd:import
namespace="http://www.xchanging.com/types/exception" />
<xsd:element name="doDeparture" type="data:doDepartureParameters"
/>
<xsd:element name="doArrival" type="data:doArrivalParameters" />
<xsd:element name="doDocManage" type="data:doDocManageParameters"
/>
<xsd:element name="doDepartureResponse" type="data:response" />
<xsd:element name="doArrivalResponse" type="data:response" />
<xsd:element name="doDocManageResponse" type="data:response" />
<xsd:element name="trackerJavaException"
type="exception:trackerJavaException" nillable="true" />
<xsd:element name="databaseErrorException"
type="exception:databaseErrorException" nillable="true" />
</xsd:schema>
</wsdl:types>
<wsdl:message name="doDepartureRequest">
<wsdl:part name="parameters" element="tns:doDeparture" />
</wsdl:message>
<wsdl:message name="doDepartureResponse">
<wsdl:part name="parameters" element="tns:doDepartureResponse" />
</wsdl:message>
<wsdl:message name="doArrivalRequest">
<wsdl:part name="parameters" element="tns:doArrival" />
</wsdl:message>
<wsdl:message name="doArrivalResponse">
<wsdl:part name="parameters" element="tns:doArrivalResponse" />
</wsdl:message>
<wsdl:message name="doDocManageRequest">
<wsdl:part name="parameters" element="tns:doDocManage" />
</wsdl:message>
<wsdl:message name="doDocManageResponse">
<wsdl:part name="parameters" element="tns:doDocManageResponse" />
</wsdl:message>
<wsdl:message name="trackerJavaException">
<wsdl:part name="fault" element="tns:trackerJavaException" />
</wsdl:message>
<wsdl:message name="databaseErrorException">
<wsdl:part name="fault" element="tns:databaseErrorException" />
</wsdl:message>
<wsdl:portType name="TrackerWebService">
<wsdl:operation name="doDeparture">
<wsdl:input
name="doDepartureRequest" message="intf:doDepartureRequest" />
<wsdl:output name="doDepartureResponse"
message="intf:doDepartureResponse" />
<wsdl:fault
message="intf:trackerJavaException" name="trackerJavaException" />
<wsdl:fault message="intf:databaseErrorException"
name="databaseErrorException" />
</wsdl:operation>
<wsdl:operation name="doArrival">
<wsdl:input
name="doArrivalRequest" message="intf:doArrivalRequest" />
<wsdl:output name="doArrivalResponse"
message="intf:doArrivalResponse" />
<wsdl:fault
message="intf:trackerJavaException" name="trackerJavaException" />
<wsdl:fault message="intf:databaseErrorException"
name="databaseErrorException" />
</wsdl:operation>
<wsdl:operation name="doDocManage">
<wsdl:input
name="doDocManageRequest" message="intf:doDocManageRequest" />
<wsdl:output name="doDocManageResponse"
message="intf:doDocManageResponse" />
<wsdl:fault
message="intf:trackerJavaException" name="trackerJavaException" />
<wsdl:fault message="intf:databaseErrorException"
name="databaseErrorException" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TrackerWebServiceBinding" type="intf:TrackerWebService">
<wsdlsoap:binding
style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<!-- define the operations as document/literal -->
<wsdl:operation name="doDeparture">
<wsdlsoap:operation soapAction="doDeparture" style="document" />
<wsdl:input name="doDepartureRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="doDepartureResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
<wsdl:fault name="trackerJavaException">
<wsdlsoap:fault name="trackerJavaException"
use="literal" />
</wsdl:fault>
<wsdl:fault name="databaseErrorException">
<wsdlsoap:fault name="databaseErrorException"
use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="doArrival">
<wsdlsoap:operation soapAction="doArrival" style="document" />
<wsdl:input name="doArrivalRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="doArrivalResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
<wsdl:fault name="trackerJavaException">
<wsdlsoap:fault name="trackerJavaException"
use="literal" />
</wsdl:fault>
<wsdl:fault name="databaseErrorException">
<wsdlsoap:fault name="databaseErrorException"
use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="doDocManage">
<wsdlsoap:operation soapAction="doDocManage" style="document" />
<wsdl:input name="doDocManageRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="doDocManageResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
<wsdl:fault name="trackerJavaException">
<wsdlsoap:fault name="trackerJavaException"
use="literal" />
</wsdl:fault>
<wsdl:fault name="databaseErrorException">
<wsdlsoap:fault name="databaseErrorException"
use="literal" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TrackerWebServiceS">
<wsdl:port binding="impl:TrackerWebServiceBinding" name="TrackerService">
<wsdlsoap:address
location="http://localhost:8888/tracker/services/TrackerService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
- error in wsdl - help please Patrick Cogan
- RE: error in wsdl - help please Grossberger, Guenter
- RE: error in wsdl - help please Deepak Kothule
