Click here to Skip to main content
Click here to Skip to main content
Go to top

How to overload a web method in ASP.NET webservice...?

, 26 Aug 2011
Rate this:
Please Sign up or sign in to vote.
How to overload a web method in ASP.NET webservice...?
Here is the solution to overload a web method in web service...
 
First of all, make changes in this:
 [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
 
You need to write like this:
[WebServiceBinding(ConformsTo = WsiProfiles.None)]
 
Then make changes in webmethod.
Add messageName property to your webmethod:
[WebMethod (MessageName="YourMessageName")]
 
After doing this, your webmethod will now be overloaded and no error will arise.
 
Enjoy...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Tejas Vaishnav
Software Developer
India India
No Biography provided

Comments and Discussions

 
GeneralMy vote of 1 PinmemberStrange_Pirate29-Sep-12 0:12 
GeneralMy vote of 1 PinmemberStrange_Pirate29-Sep-12 0:08 
QuestionSuggestion For You Sir PinmemberStrange_Pirate28-Sep-12 2:10 
QuestionQuestion PinmemberStrange_Pirate28-Sep-12 2:03 
GeneralReason for my vote of 1 kuch hai bhi PingroupBhupender Singh20-Oct-11 23:55 
GeneralReason for my vote of 1 not proper description and example Pinmembershyam270716-Oct-11 8:09 
GeneralReason for my vote of 3 Could use more detail outlining the ... PinmemberBrianBissell30-Aug-11 3:51 
GeneralReason for my vote of 3 Should have made the problem your so... PinmemberBrianBissell30-Aug-11 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140922.1 | Last Updated 26 Aug 2011
Article Copyright 2011 by Tejas Vaishnav
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid