You can define enumerations in your WSDL by declaring a simple type with
a restiction. Check out this example:
<simpleType name="GraphicTypeEnum">
<restriction base="string">
<enumeration value="bmp" />
<enumeration value="gif" />
<enumeration value="jpeg" />
<enumeration value="noGraphics" />
<enumeration value="png" />
<enumeration value="wbmp" />
</restriction>
</simpleType>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:49 AM
To: [EMAIL PROTECTED]
Subject: RE: (Urgent) WSDL Doubt
Hi, thanks for the info.
-----Original Message-----
From: ext Almeida, Timothy [mailto:[EMAIL PROTECTED]
Sent: 27. March 2003 17:46
To: '[EMAIL PROTECTED]'
Subject: RE: (Urgent) WSDL Doubt
Suresh,
Yes, WSDL can define enumerations. You can check out this currency
conversion service as an example -- it defines an enumeration for a
simple type named 'Currency'.
http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
You can use Binding Point's QuickTry site to quickly test it:
http://www.bindingpoint.com/QuickTryv2.aspx
Not sure how one should go about defining enumerations with Axis. (Maybe
someone else would care to elaborate on the best way.) I'm guessing the
solution would partly involve defining your own Serializer (which can
define how WSDL is output for a given type.)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 8:22 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: (Urgent) WSDL Doubt
Hi,
I would like to know if it is possible to specify enumerations in WSDL.
For example, my service method takes a String parameter, but only
certain Strings are allowed. Is it possible to specify this in WSDL? Or
how should this be communicated to the SOAP clients?
Thanks,
Suresh