views:

127

answers:

3

Hi, I am creating a web service that generates the following in the WSDL file:

<wsdl:portType name="myServicePortSoap">

and would like to have it renamed to generate:

<wsdl:portType name="myServicePort">

How can I do that within the .asmx file to do so? Any ideas please?

A: 

.asmx? I assume you are using ASP.NET to auto-generate your WSDL?

I'm not sure how you would override the port identifier, or why you would want to; perhaps you are looking to alias your Web methods?

seanhodges
+1  A: 

Apparently specifying the Name parameter in the WebServiceBinding attribute is supposed to affect this but I couldn't see the change in the WSDL.

Kev
+1  A: 

Hi there,

I haven't found any way to do this in .NET 2.0. HOWEVER, this is possible thanks to the WCF extensions... Check out the link below:

http://blogs.msdn.com/trobbins/archive/2007/02/04/wcf-and-wsdl.aspx