D
Doug
Hello,
For a long time we've been told that you can't overload web service
calls but recently we found a way to do it using the WebMethod
attribute as in the example below. This will allow us as you can see
to have two web service methods of the same name and will show them as
such in intellisense.
I am wondering if there is any concern in doing this? Is there any
documentation anywhere that explains what might be happening with SOAP
that could make doing this a bad idea? Generally just looking for any
information at all that could guide us in whether or not we should be
doing this on a regular basis.
[WebMethod(MessageName="GetUsersForRuleAndOneSubLevel")]
public DataSet GetUsersForRule(string szRule, string szLevel1, string
szUserId)
[WebMethod(MessageName="GetUsersForRuleAndTwoSubLevels")]
public DataSet GetUsersForRule(string szRule, string szLevel1, string
szLevel2,
string szUserId, string szBusinessUnit)
For a long time we've been told that you can't overload web service
calls but recently we found a way to do it using the WebMethod
attribute as in the example below. This will allow us as you can see
to have two web service methods of the same name and will show them as
such in intellisense.
I am wondering if there is any concern in doing this? Is there any
documentation anywhere that explains what might be happening with SOAP
that could make doing this a bad idea? Generally just looking for any
information at all that could guide us in whether or not we should be
doing this on a regular basis.
[WebMethod(MessageName="GetUsersForRuleAndOneSubLevel")]
public DataSet GetUsersForRule(string szRule, string szLevel1, string
szUserId)
[WebMethod(MessageName="GetUsersForRuleAndTwoSubLevels")]
public DataSet GetUsersForRule(string szRule, string szLevel1, string
szLevel2,
string szUserId, string szBusinessUnit)