Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overloaded Methods
Message
De
24/08/2002 17:38:57
 
 
À
23/08/2002 23:33:54
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00691767
Message ID:
00693331
Vues:
34
OK, Claudio ... I tried it and you are partially right.

It works just fine in the client code, *if* the client code is .NET. In other words, .NET seems to be doing some behind-the-scenes trickery. If I try to run the same WebService in VFP, I keep getting an "Unknown Name" error (meaning the name of the Web method). Try it, you'll see what I mean. Could be a Soap ToolKit issue and maybe with Soap 3.0 it's not an issue, I have no idea.

Now, this may or may not be ok for some. But, we want our WebServices to work for any and all clients. Even though, at this point, they are only being consumed by .NET clients, we don't want that to be a limiting factor.

So, I guess I'll give up on the idea of overloading our WebService methods.

But thanks for giving me a fun exercise to do this weekend! <g>

~~Bonnie


>Hi, Bonnie.
>
>Try this:
>
>
>[WebMethod(MessageName="GetApparatusList2")]
>public string GetApparatusList(string GUID, string Message, long StationKey)
>{
>...
>}
>
>
>Doing like this, on the client you will call GetApparatusList, and all the mapping for the messaging will be done internally... you don't need to worry about.
>
>Sorry, I'm on a rush now... let me know either if you succeeded with this, or if you had some trouble.
>
>HTH
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform