all groups > dotnet web services > february 2006 >
You're in the

dotnet web services

group:

how to expose const's in my WSDL


how to expose const's in my WSDL Ohad Redlich
2/23/2006 3:16:30 AM
dotnet web services: hi
i have my web service. i want its WSDL to expose, in addition to all the
methods and structs, some const-s (ints).
can i do that?
thanks,
Ohad

--
visit my photography exhibition at
www.pbase.com/ohadr
RE: how to expose const's in my WSDL JRadical
3/1/2006 8:14:27 AM
I looked for this one a while back. More specifically I was thinking
in the XSD, (probably what you mean too). I Never found a solution.
You can use a 1 element enumeration though...

[quoted text, click to view]
RE: how to expose const's in my WSDL Ohad Redlich
3/1/2006 8:36:14 AM
thanks!
--
visit my photography exhibition at
www.pbase.com/ohadr



[quoted text, click to view]
Re: how to expose const's in my WSDL Josh Twist
3/3/2006 12:21:40 AM
Hi Ohad,

A const is essentially a data value. Why would you want to represent a
data value in WSDL which is only about structure?

If it's because you want your web service to accept discrete values,
consider using an Enum.

Hope that helps, just shout if you have any questions...

Josh
http://www.thejoyofcode.com/
Re: how to expose const's in my WSDL Ohad Redlich
3/5/2006 3:46:27 AM
hei,
thanks.
yes, you r right. i wanted to accept discrete values. i will use enum, as u
say.
many thanks
Ohad

[quoted text, click to view]

--
visit my photography exhibition at
www.pbase.com/ohadr



[quoted text, click to view]
AddThis Social Bookmark Button