Sorry, I mis-spoke. We have a webmethod that takes as a parameter an enumeration type. This is a normal .NET enumeration. Inside of its definition it defines the associated integer values. None of this is actually done using XML.
To be completely honest, I don't think that what we want to do can be done, and I'm not sure it should be. Chris -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 01, 2004 5:13 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Using enumerations in WebServices How do you define an element in a document type in webMethods to be an enumeration with associated integer values? (appears to be my week for stupid questions as well ;) ) What version of webMethods? -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 01, 2004 12:53 PM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Using enumerations in WebServices Well, this seems to be my week for stupid questions. So, without further ADO, here's another: The app that I work on uses webmethods. Some of the parameters are enumerations. Some of these enumerations (read: ALL) use defined integer values, for example: enum E { V1 = 3, V2 = 17} When enumerations comes across in the references.cs file, the defined values are lost: enum E { V1, V2 } Unfortunately, there are a few places in our clientside code where we need to know that value. Is there a way to force insertion of the values? Thanks a lot, Chris Snyder =================================== This list is hosted by DevelopMentorR http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com
