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.
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.