> "Custom tool error: Unable to import WebService/Schema. Unable to import
> binding..." I thought may be wsdl file is not good enough (it was
> created with qsoap toolkit), so I paste-copy sample from
> http://www.w3.org/TR/2001/NOTE-wsdl-20010315#_wsdl (will paste below)
> and receive same error (qsoap give some warning on this file but create
> client) . Could you say what I'm doing wrong? Thanks ahead.
Its quite possible you arent doing anything wrong. XML is very open - in fact
it lets you do so much that no matter how good the "add web reference" is, it
will never be able to interpret every possiblity. If you control the server
side definition, find out what binding it says (you wrote ....) and try to
simplify it.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu
pshvarts - 11 May 2005 18:50 GMT
Sorry, by mistake I paste my wsdl. But same problem happen with first sample
from wsdl.org and how I can simplify what describe only one function?
<?xml version="1.0"?>
<definitions name="StockQuote"
targetNamespace="http://example.com/stockquote.wsdl"
xmlns:tns="http://example.com/stockquote.wsdl"
xmlns:xsd1="http://example.com/stockquote.xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema targetNamespace="http://example.com/stockquote.xsd"
xmlns="http://www.w3.org/2000/10/XMLSchema">
<element name="TradePriceRequest">
<complexType>
<all>
<element name="tickerSymbol" type="string"/>
</all>
</complexType>
</element>
<element name="TradePrice">
<complexType>
<all>
<element name="price" type="float"/>
</all>
</complexType>
</element>
</schema>
</types>
<message name="GetLastTradePriceInput">
<part name="body" element="xsd1:TradePriceRequest"/>
</message>
<message name="GetLastTradePriceOutput">
<part name="body" element="xsd1:TradePrice"/>
</message>
<portType name="StockQuotePortType">
<operation name="GetLastTradePrice">
<input message="tns:GetLastTradePriceInput"/>
<output message="tns:GetLastTradePriceOutput"/>
</operation>
</portType>
<binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="GetLastTradePrice">
<soap:operation soapAction="http://example.com/GetLastTradePrice"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="StockQuoteService">
<documentation>My first service</documentation>
<port name="StockQuotePort" binding="tns:StockQuoteBinding">
<soap:address location="http://example.com/stockquote"/>
</port>
</service>
</definitions>
> > "Custom tool error: Unable to import WebService/Schema. Unable to import
> > binding..." I thought may be wsdl file is not good enough (it was
[quoted text clipped - 14 lines]
>
> Blog: http://blogs.atozed.com/kudzu