WSDL proxy issue!

R

Raj

Here's the signature of the web service i have created:

using WebServiceData;

[SoapHeader("Consumer")]
[WebMethod]
public WebServiceData.Result PutData(WebServiceData.Result res)
{

}

The proxy file generated by wsdl always generates the above function as
public Result PutData(Result)

And hence, after the proxy file is generated every time i need manually
replace Result with WebServiceData.Result otherwise I am getting error while
consuming the web service

Here's the command I have used to generate the proxy file:

wsdl http://../../filename.asmx?WSDL

It is creating successfuly without any error!

I welcome any workaround

Thank you

Regards
Raj
 
F

Family Tree Mike

Here's the signature of the web service i have created:

using WebServiceData;

[SoapHeader("Consumer")]
[WebMethod]
public WebServiceData.Result PutData(WebServiceData.Result res)
{

}

The proxy file generated by wsdl always generates the above function as
public Result PutData(Result)

And hence, after the proxy file is generated every time i need manually
replace Result with WebServiceData.Result otherwise I am getting error while
consuming the web service

Here's the command I have used to generate the proxy file:

wsdl http://../../filename.asmx?WSDL

It is creating successfuly without any error!

I welcome any workaround

Thank you

Regards
Raj

My experience when adding the web reference is that I need to supply a
namespace. It would have defaulted to the site name, I believe, unless
the web service is in the same solution, then I'm unsure how the
namespace defaults.

In general though, I feel the client should assign a meaningful name to
the web service namespace, not the service forcing the 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

Top