axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Lizhao" <>
Subject RE: Strong types in Axis2 wsdl
Date Fri, 29 Aug 2008 06:48:49 GMT
Do you try like this:


<xsd:simpleType name=" ObjectType_T">

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

      <xsd:enumeration value="Array"/>

      <xsd:enumeration value="Structure"/>


<xsd:simpleType name=" ObjectType_T ">


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



From: Pugalia, Jai P (JP) [] 
Sent: Thursday, August 28, 2008 09:01 PM
Subject: Strong types in Axis2 wsdl




I have an Axis2 wsdl which exposes an ObjectType as 


<xs:element minOccurs="0" name="objectType" nillable="true"


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.




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

View raw message