473,379 Members | 1,174 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,379 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 1164

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.