![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does anyone know how to pass an enum to a web method? |
#3
| |||
| |||
|
|
"Tony" <tonyng2 (AT) spacecommand (DOT) net> wrote in message news:e1HNu9MXGHA.1352 (AT) TK2MSFTNGP05 (DOT) phx.gbl... Does anyone know how to pass an enum to a web method? Hi Tony, if you are using .NET framework to call the web service, in the generated proxy class on the client should be a method definition that would allow you to pass the enum. Additionaly you can apply XmlEnumAttribute to your enum to describe what value you want to serialize over the wire. Regards, -- Martin Kulov http://www.codeattest.com/blogs/martin MVP, MCT, MCSD.NET Early Achiever |
#4
| |||
| |||
|
|
Yes, the client is a v2.0 win forms client application. I get compiler errors when attempting to use the enum - so if this is possible, I must be doing something wrong.. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |