...">

WebService Attributes

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

<wsdl:portType name="myServicePortSoap">

      

and would like it to be renamed to generate:

<wsdl:portType name="myServicePort">

      

How do I do this in the .asmx file to do this? Any ideas please?

+1


source to share


3 answers


Obviously, specifying the Name parameter in the WebServiceBinding attribute should affect this, but I couldn't see the changes in the WSDL.



+1


source


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



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

+1


source


.asmx? I am assuming you are using ASP.NET to automatically generate the WSDL?

I'm not sure how you would override the port id or why you would want to; perhaps you are looking for an alias for your web methods ?

0


source







All Articles