Hi,
I am trying to hook into Yellow Freight's rating webservice. Below is the
wsdl. When i try and create a proxy file with wsdl.exe i get the following
errors, see below.
Also, when i reference this wsdl in .NET it seems to do it fine, yet there
are no objects to reference except RateQuoteBeanService.
In the WSDL it looks like there should be getRateQuote, and QUOTEREQUEST, etc.
Am i doing something wrong? Thanks in advance for your help.
wsdl.exe errors:
Schema validation warning: Namespace 'http://beans.xmlschema.etools.ibm.com'
is
not available to be referenced in this schema.
Schema validation warning: Namespace 'http://beans.xmlschema.etools.ibm.com'
is
not available to be referenced in this schema.
Schema validation warning: Namespace 'http://beans.xmlschema.etools.ibm.com'
is
not available to be referenced in this schema.
Schema validation warning: Namespace 'http://beans.xmlschema.etools.ibm.com'
is
not available to be referenced in this schema.
Writing file 'H:\RateQuoteBeanService.cs'.
WSDL:
<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:s1="http://beans.xmlschema.etools.ibm.com"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://ratequoterequest"
xmlns:s2="http://ratequoteresponse"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://DefaultNamespace"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://DefaultNamespace"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<s:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://ratequoterequest">
<s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<s:complexType name="QUOTEREQUEST">
<s:complexContent mixed="false">
<s:extension base="s1:ComplexType">
<s:sequence>
<s:element name="REQUESTID" nillable="true" type="s:string" />
<s:element name="ORIGINZIP" nillable="true" type="s:string" />
<s:element name="DESTZIP" nillable="true" type="s:string" />
<s:element name="WEIGHT0" nillable="true" type="s:string" />
<s:element name="WEIGHT1" nillable="true" type="s:string" />
<s:element name="WEIGHT2" nillable="true" type="s:string" />
<s:element name="WEIGHT3" nillable="true" type="s:string" />
<s:element name="WEIGHT4" nillable="true" type="s:string" />
<s:element name="SHIPCLASS0" nillable="true" type="s:string" />
<s:element name="SHIPCLASS1" nillable="true" type="s:string" />
<s:element name="SHIPCLASS2" nillable="true" type="s:string" />
<s:element name="SHIPCLASS3" nillable="true" type="s:string" />
<s:element name="SHIPCLASS4" nillable="true" type="s:string" />
<s:element name="PIECES0" nillable="true" type="s:string" />
<s:element name="PIECES1" nillable="true" type="s:string" />
<s:element name="PIECES2" nillable="true" type="s:string" />
<s:element name="PIECES3" nillable="true" type="s:string" />
<s:element name="PIECES4" nillable="true" type="s:string" />
<s:element name="CONSCITIES" nillable="true" type="s:string" />
<s:element name="CONSZIPFORCITIES" nillable="true"
type="s:string" />
<s:element name="SHIPCITIES" nillable="true" type="s:string" />
<s:element name="SHIPZIPFORCITIES" nillable="true"
type="s:string" />
<s:element name="CF" nillable="true" type="s:string" />
<s:element name="ACCESSORIAL0" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL1" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL2" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL3" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL4" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL5" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL6" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL7" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL8" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL9" nillable="true" type="s:string"
/>
<s:element name="ACCESSORIAL10" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL11" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL12" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL13" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL14" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL15" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL16" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL17" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL18" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL19" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL20" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL21" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL22" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL23" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL24" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL25" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL26" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL27" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL28" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL29" nillable="true"
type="s:string" />
<s:element name="ACCESSORIAL30" nillable="true"
type="s:string" />
<s:element name="ONESHIPMENT" nillable="true" type="s:string" />
<s:element name="LTLDD" nillable="true" type="s:string" />
<s:element name="PAYMENT" nillable="true" type="s:string" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
<s:element name="QUOTEREQUEST" nillable="true" type="s0:QUOTEREQUEST" />
</s:schema>
<s:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://beans.xmlschema.etools.ibm.com">
<s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<s:complexType name="ComplexType">
<s:complexContent mixed="false">
<s:extension base="s1:BaseType">
<s:sequence />
</s:extension>
</s:complexContent>
</s:complexType>
<s:complexType name="BaseType">
<s:sequence>
<s:element name="elementName" nillable="true" type="s:string" />
<s:element name="XMLElement" nillable="true" type="s:anyType" />
<s:element name="XMLAttribute" nillable="true" type="s:anyType" />
<s:element name="prefix" nillable="true" type="s:string" />
<s:element name="elementValue" nillable="true" type="s:string" />
<s:element name="attributeQualified" type="s:boolean" />
<s:element name="elementQualified" type="s:boolean" />
</s:sequence>
</s:complexType>
</s:schema>
<s:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://ratequoteresponse">
<s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<s:complexType name="RATEQUOTE">
<s:complexContent mixed="false">
<s:extension base="s1:ComplexType">
<s:sequence>
<s:element name="STATUS" nillable="true" type="s:string" />
<s:element name="SHIPPERZIPCODE" nillable="true"
type="s:string" />
<s:element name="SHIPPERZIPCODESERVEDBYTRM" nillable="true"
type="s:string" />
<s:element name="SHIPPERZIPCODESERVEDBYTRMTYPE"
nillable="true" type="s:string" />
<s:element name="CONSIGNEEZIPCODE" nillable="true"
type="s:string" />
<s:element name="CONSIGNEEZIPCODESERVEDBYTRM" nillable="true"
type="s:string" />
<s:element name="CONSIGNEEZIPCODESERVEDBYTRMTYPE"
nillable="true" type="s:string" />
<s:element name="PAYMENTINFORMATION" nillable="true"
type="s:string" />
<s:element name="REQUESTID" nillable="true" type="s:string" />
<s:element maxOccurs="unbounded" name="SHIPMENTLINEDETAIL"
nillable="true" type="s2:SHIPMENTLINEDETAIL" />
<s:element name="CURRENCY" nillable="true" type="s:string" />
<s:element name="STANDARDGROUNDTOTAL" nillable="true"
type="s:string" />
<s:element name="DEFINITEDELIVERYTOTAL" nillable="true"
type="s:string" />
<s:element name="SERVICEDAYS" nillable="true" type="s:string" />
<s:element name="PROJECTEDDELIVERYDATEIFSHIPPEDTODAY"
nillable="true" type="s:string" />
<s:element name="GROSSCHARGE" nillable="true" type="s:string" />
<s:element name="RATEDAS" nillable="true" type="s:string" />
<s:element name="DISCOUNTAMOUNT" nillable="true"
type="s:string" />
<s:element name="DISCOUNTPERCENTAGE" nillable="true"
type="s:string" />
<s:element name="FUELSURCHARGE" nillable="true"
type="s:string" />
<s:element name="EXTENDEDSERVICESTOTAL" nillable="true"
type="s:string" />
<s:element maxOccurs="unbounded" name="EXTENDEDSERVICESDETAIL"
nillable="true" type="s2:EXTENDEDSERVICESDETAIL" />
<s:element name="RATEQUOTEID" nillable="true" type="s:string" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
<s:complexType name="SHIPMENTLINEDETAIL">
<s:complexContent mixed="false">
<s:extension base="s1:ComplexType">
<s:sequence>
<s:element name="WEIGHT" nillable="true" type="s:string" />
<s:element name="CLASS" nillable="true" type="s:string" />
<s:element name="PIECES" nillable="true" type="s:string" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
<s:complexType name="EXTENDEDSERVICESDETAIL">
<s:complexContent mixed="false">
<s:extension base="s1:ComplexType">
<s:sequence>
<s:element name="EXTENDEDSERVICENAME" nillable="true"
type="s:string" />
<s:element name="EXTENDEDSERVICEAMOUNT" nillable="true"
type="s:string" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
<s:complexType name="getQuoteResponse">
<s:all>
<s:element name="RATEQUOTE" nillable="true" type="s2:RATEQUOTE" />
</s:all>
</s:complexType>
</s:schema>
</types>
<message name="getRateQuoteRequest">
<part name="input" element="s0:QUOTEREQUEST" />
</message>
<message name="getRateQuoteResponse">
<part name="getQuoteReturn" type="s2:getQuoteResponse" />
</message>
<message name="Exception" />
<portType name="RateQuoteBean">
<operation name="getRateQuote" parameterOrder="input">
<input name="getRateQuoteRequest" message="tns:getRateQuoteRequest" />
<output name="getRateQuoteResponse" message="tns:getRateQuoteResponse"
/>
<fault name="Exception" message="tns:Exception" />
</operation>
</portType>
<binding name="RateQuoteBeanSoapBinding" type="tns:RateQuoteBean">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="getRateQuote">
<soap:operation
soapAction="com.yell.ec.inter.yfsratequote.http.co ntroller.RateQuoteSOAPAPIController" />
<input name="getRateQuoteRequest">
<soap:body use="literal" namespace="http://DefaultNamespace" />
</input>
<output name="getRateQuoteResponse">
<soap:body use="literal" namespace="http://DefaultNamespace" />
</output>
</operation>
</binding>
<service name="RateQuoteBeanService">
<port name="RateQuoteBean" binding="tns:RateQuoteBeanSoapBinding">
<soap:address
location="https://www.myyellow.com/dynamic/services/servlet" />
</port>
</service>
</definitions>