Do you try like this:

 

<xsd:simpleType name=" ObjectType_T">

<xsd:restriction base="xsd:string">

      <xsd:enumeration value="Array"/>

      <xsd:enumeration value="Structure"/>

</xsd:restriction>

<xsd:simpleType name=" ObjectType_T ">

 

<xs:element minOccurs="0" name="objectType" nillable="true" type="
ObjectType_T"/>

 

________________________________

From: Pugalia, Jai P (JP) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 28, 2008 09:01 PM
To: axis-user@ws.apache.org
Subject: Strong types in Axis2 wsdl

 

Hi,

 

I have an Axis2 wsdl which exposes an ObjectType as 

 

<xs:element minOccurs="0" name="objectType" nillable="true"
type="xs:string"/>

 

I want to restrict the valid values to say "Array" and "Structure". If I
change the element to be an enumeration, it does not work as looks like
Axis2 does not support enumerations yet. Is there any other way I can
make this strongly typed in the wsdl.

 

Thanks,

Jai

============================================================
The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs
============================================================

Reply via email to