Thursday, September 04, 2008

Use overloaded web methods in web services (asmx)

In order to use the overloaded methods in the web services (asmx), two things need to be done.

1. When creating a new webservice in Visual Studio .NET 2005, the IDE automatically adds the following line on top of your serviceName.cs file:

[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

Change it to WsiProfiles.None

2. Add the MessageName in the [WebMethod(MessageName="UniqueName1"]

No comments: