WSDL Error

V

VL

I am trying to return a static wsdl file (instead of having asmx generateit
dynamically). Unfortunately I am running into the following error.

1) Using the WebServiceBindingAttribute I specify the relative location of
my wsdl file.

[System.Web.Services.WebServiceBindingAttribute(Name="OrderServiceSoapBindin
g", Namespace="http://services.xyz.com/",
Location="http://localhost/WebService1/xyz.wsdl")]

2) As a result, when a wsdl request is made at this endpoint, the following
is returned:

<?xml version="1.0" encoding="utf-8" ?>
- <definitions xmlns:i0=http://services.xyz.com/ >
<import namespace=http://services.xyz.com/
location=http://localhost/WebService1/xyz.wsdl />
<types />
- <service name="MyService">
- <port name="MyServiceSoapBinding"
binding="i0:MyServiceSoapBinding">
<soap:address
location="http://localhost/WebService1/MyService.asmx" />
</port>
</service>
</definitions>


3) Now if I run wsdl.exe http://localhost/WebService1/MyService.asmx?wsdl

I get the following error

Error: Element binding named MyServiceSoapBinding from namespace
http://services.xyz.com/ is missing.

I have doubled checked to make sure MyServiceSoapBinding is defined in the
correct namespace.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top