HighTechTalks DotNet Forums  

Custom WSDL, Error while adding as web reference

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Custom WSDL, Error while adding as web reference in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
MD
 
Posts: n/a

Default Custom WSDL, Error while adding as web reference - 11-09-2007 , 10:37 PM






Hi,

I am trying to add a custom WSDL file I created and add it in another
project. And I get the following error:

Custom tool error: Unable to import WebService/Schema. Element binding
named StockQuoteBinding from namespace http://myadvancedwebserviceURI/
is missing.

Any help will be of great help!.. Here is the WSDL file, I am not sure
if there is a error in here..

<?xml version="1.0"?>

<definitions
name="StockQuote"
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://myadvancedwebserviceURI/" xmlns:soapenc="http://
schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://myadvancedwebserviceURI/"
xmlns="http://schemas.xmlsoap.org/wsdl/">

<types>
<s:schema targetNamespace="http://myadvancedwebserviceURI/">
<s:element name="TradePriceRequest">
<s:complexType>
<all> <s:element name="tickerSymbol" type="string"/> </all>
</s:complexType>
</s:element>
<s:element name="TradePrice">
<s:complexType>
<all> <s:element name="price" type="float"/></all>
</s:complexType>
</s:element>
</s:schema>
</types>
<message name="GetLastTradePriceInput">
<part name="body" element="s0:TradePriceRequest"/>
</message>
<message name="GetLastTradePriceOutput">
<part name="body" element="s0:TradePrice"/>
</message>
<portType name="StockQuotePortType">
<operation name="GetLastTradePrice">
<input message="s0:GetLastTradePriceInput"/>
<output message="s0:GetLastTradePriceOutput"/>
</operation>
</portType>
<binding name="StockQuoteSoapBinding" type="s0:StockQuotePortType">
<soap:binding style="document" transport= "http://
schemas.xmlsoap.org/soap/http"/>
<operation name="GetLastTradePrice">
<soapperation soapAction= "http://myadvancedwebserviceURI/
GetLastTradePrice" style="document"/>
<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= "s0:StockQuoteBinding">
<soap:address location="http://localhost/otherWebService/
stockquote.asmx"/>
</port>
</service>
</definitions>


Thanks again, I look forward for any help.

- md


Reply With Quote
  #2  
Old   
Tiago Halm
 
Posts: n/a

Default Re: Custom WSDL, Error while adding as web reference - 12-06-2007 , 05:40 PM






Try changing
<port name="StockQuotePort" binding= "s0:StockQuoteBinding">
to
<port name="StockQuotePort" binding= "s0:StockQuoteSoapBinding">

Tiago Halm

"MD" <madhu.datla (AT) gmail (DOT) com> wrote

Quote:
Hi,

I am trying to add a custom WSDL file I created and add it in another
project. And I get the following error:

Custom tool error: Unable to import WebService/Schema. Element binding
named StockQuoteBinding from namespace http://myadvancedwebserviceURI/
is missing.

Any help will be of great help!.. Here is the WSDL file, I am not sure
if there is a error in here..

?xml version="1.0"?

definitions
name="StockQuote"
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://myadvancedwebserviceURI/" xmlns:soapenc="http://
schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://myadvancedwebserviceURI/"
xmlns="http://schemas.xmlsoap.org/wsdl/"

types
s:schema targetNamespace="http://myadvancedwebserviceURI/"
s:element name="TradePriceRequest"
s:complexType
all> <s:element name="tickerSymbol" type="string"/> </all
/s:complexType
/s:element
s:element name="TradePrice"
s:complexType
all> <s:element name="price" type="float"/></all
/s:complexType
/s:element
/s:schema
/types
message name="GetLastTradePriceInput"
part name="body" element="s0:TradePriceRequest"/
/message
message name="GetLastTradePriceOutput"
part name="body" element="s0:TradePrice"/
/message
portType name="StockQuotePortType"
operation name="GetLastTradePrice"
input message="s0:GetLastTradePriceInput"/
output message="s0:GetLastTradePriceOutput"/
/operation
/portType
binding name="StockQuoteSoapBinding" type="s0:StockQuotePortType"
soap:binding style="document" transport= "http://
schemas.xmlsoap.org/soap/http"/
operation name="GetLastTradePrice"
soapperation soapAction= "http://myadvancedwebserviceURI/
GetLastTradePrice" style="document"/
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= "s0:StockQuoteBinding"
soap:address location="http://localhost/otherWebService/
stockquote.asmx"/
/port
/service
/definitions


Thanks again, I look forward for any help.

- md




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.