WebService Parameters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I am a beginner in using the Web Services. I attempt to send typed
parameters (such as Shoe that possesses a name and a color, two strings) but
..NET seems to make a difference between the Shoe class and the
localhost.MyApp.Shoe class...

Would someone tell me the difference between them please?

Thanks in advance,

François Lépine
 
Hi,

Couple of hints:

1)If you want to send a structure use [Serializable] parameter on the
declaration
2) When you reference your webservice in your App you are creating a proxy,
in that proxy the defitnition is stored, that's why you have
localhost.MyApp.Shoe and you should use this reference to access it.

localhost.MyApp.Shoe MyShoe = localhost.MyApp.YourFunction();

Hope this helps
Salva
 
The localhost.MyApp.Shoe is a proxy generated class that mimics your original
class. When you reference a Web service, the definition of that Web service
and it's parameters are examined and generated. That's why you get that
class.
 
Back
Top