473,473 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Overloading Web Service Calls

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="GetUsersForRuleAndOneSubLev el")]
public DataSet GetUsersForRule(string szRule, string szLevel1, string
szUserId)

[WebMethod(MessageName="GetUsersForRuleAndTwoSubLev els")]
public DataSet GetUsersForRule(string szRule, string szLevel1, string
szLevel2,
string szUserId, string szBusinessUnit)
Jul 21 '05 #1
2 3366
From what I recall of reading through the WS specification its fully
supported. As such you should probably have no issues with it.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Doug" <dn******@dtgnet.com> wrote in message
news:ff**************************@posting.google.c om...
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="GetUsersForRuleAndOneSubLev el")]
public DataSet GetUsersForRule(string szRule, string szLevel1, string
szUserId)

[WebMethod(MessageName="GetUsersForRuleAndTwoSubLev els")]
public DataSet GetUsersForRule(string szRule, string szLevel1, string
szLevel2,
string szUserId, string szBusinessUnit)

Jul 21 '05 #2
On 21 Sep 2004 05:28:35 -0700, dn******@dtgnet.com (Doug) wrote:
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.


If it's an issue for you, test also using the Microsoft Office Web
Services Toolkit as a client to your interface with the overloaded
webservice method names.

I remember last year we had some problem with this toolkit (ie with
the VBA glue code its wizard generates) and overloaded web service
methods, and we changed to unique method/webservice names to avoid it.

I can't remember the specifics now, but I know we ended up deciding it
was easier for us and our customers (who use that Toolkit with Excel
to build custom frontends and reports against our application) if we
changed to non-overloaded method names.
ted.h.
--
Ted Harper (Sydney, Australia)
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Terje Slettebø | last post by:
To round off my trilogy of "why"'s about PHP... :) If this subject have been discussed before, I'd appreciate a pointer to it. I again haven't found it in a search of the PHP groups. The PHP...
30
by: | last post by:
I have not posted to comp.lang.c++ (or comp.lang.c++.moderated) before. In general when I have a C++ question I look for answers in "The C++ Programming Language, Third Edition" by Stroustrup....
5
by: | last post by:
Hi all, I've been using C++ for quite a while now and I've come to the point where I need to overload new and delete inorder to track memory and probably some profiling stuff too. I know that...
18
by: uday | last post by:
Does C supports overloading. I am thinking no. But some people are saying yes. If yes how. Please answer with examples. Also in c++ size of empty class is one. why. and what are the default...
31
by: | last post by:
Hi, Why can I not overload on just the return type? Say for example. public int blah(int x) { }
2
by: Doug | last post by:
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...
4
by: Doug | last post by:
Hi I am 'returning' to the learning of C# after a change in jobs and I remember that I used to struggle with the defintion, purpose and function of 'overloading'. When I was beginning with C# I...
11
by: placid | last post by:
Hi all, Is it possible to be able to do the following in Python? class Test: def __init__(self): pass def puts(self, str): print str
8
by: Wayne Shu | last post by:
Hi everyone, I am reading B.S. 's TC++PL (special edition). When I read chapter 11 Operator Overloading, I have two questions. 1. In subsection 11.2.2 paragraph 1, B.S. wrote "In particular,...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.