Hello Michael,
Do you have the same definition for public enum EventType on the client side also?
Martin Kulov
Michael Tholkes - 04 Nov 2004 23:22 GMT
No I do not... I was hoping to keep it on my central web service and not
have to copy the enum to all of the clients...
Mike
> Hello Michael,
>
> Do you have the same definition for public enum EventType on the client side also?
>
> Martin Kulov
Hi Mike,
You didn't specify how your console app was deterimining the enum item's
value. If you were accessing via a proxy, and the enum type was one of the
parameter types on your web method, the enum should have been copied over
to the namespace for your proxy class, and it's value preserved. If you
are just formatting XML, there is no shared infomation, and the console app
won't have a way to resolve to the same enum definition (where DID it get
the enum from?)
Hope this helps,
Dan Rogers
Microsoft Corporation
--------------------
>From: "Michael Tholkes" <michaeltholkes@clearchannel.com>
>Subject: Enum Problem with asp.net webservice
[quoted text clipped - 8 lines]
>NNTP-Posting-Host: 207.230.144.240
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26381
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 12 lines]
>Thanks in advance,
>Mike