473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Confused about the MessageName attribute

Hi.

I created a web service with two overloaded methods, and used the
MessageName attribute to differentiate them:
<WebMethod(MessageName:="GetItemString")> _
Public Function GetItem(ByVal localItem As String) As String

End Function

<WebMethod(MessageName:="GetItemInteger")> _
Public Function GetItem(ByVal localItem As Integer) As String

End Function

In my client application I add a web reference to the web service, and
vs.net creates a proxy for me. When I create an instance of the proxy
class, my methods appear as GetItem and GetItem1, and that's my doubt.
Why GetItem1? Shouldn't the methods be named GetItemString and
GetItemInteger?

Regards,
Chris Leffer

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #1
0 1168

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

Similar topics

31
by: jfj | last post by:
I don't understand. We can take a function and attach it to an object, and then call it as an instance method as long as it has at least one argument: ############# class A: pass def...
9
by: jfj | last post by:
Hi. Suppose this: ######################## def foo (x): print x f = classmethod (foo)
17
by: Geoff Cox | last post by:
Hello, I am trying to have 1. web pages in large font 2. web pages with smaller font for printing I am using <link rel="stylesheet" media="print" type="text/css"
0
by: Chris Leffer | last post by:
Hi. I created a web service with two overloaded methods, and used the MessageName attribute to differentiate them: <WebMethod(MessageName:="GetItemString")> _ Public Function GetItem(ByVal...
2
by: CA | last post by:
I am learning about attributes and at this point, I am completely confused. I have posted some code below. I do not understand the following points: 1) The TestAttribute does not appear for...
0
by: Mike | last post by:
All, Trying to overload in my webservice and it doesn't like it. I get the non-conformance message from WsiProfiles.BasicProfile1_1. I thought by using messagename I would be able to overload my...
2
by: Andy Fish | last post by:
Hi, I have discovered that if I use this syntax: public string bar() { return "hello, world"; } then it is not possible to call the web service using the MS soap toolkit.
3
by: redefined.horizons | last post by:
I've been reading about Python Classes, and I'm a little confused about how Python stores the state of an object. I was hoping for some help. I realize that you can't create an empty place holder...
1
by: David | last post by:
I am new to XSLT and am confused by this example. If the {href} is part of the img tag, then the value will appear, however, when I specify "<span>{href}</span>", then the value of <hrefwill not...
1
by: hodgesp | last post by:
I am VERY New To XML and I am having a heap of trouble writing an application that will allow for the creation, modification and final output in a specific format via C# and asp .net. I am sure I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.