axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-981) Support for Enumeration
Date Thu, 17 Aug 2006 15:04:14 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-981?page=all ]

Davanum Srinivas updated AXIS2-981:
-----------------------------------

    Priority: Blocker  (was: Major)

> Support for Enumeration
> -----------------------
>
>                 Key: AXIS2-981
>                 URL: http://issues.apache.org/jira/browse/AXIS2-981
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>            Reporter: Davanum Srinivas
>            Priority: Blocker
>         Attachments: PlaceType.java
>
>
> WSDL:
> https://svn.apache.org/repos/asf/webservices/axis/trunk/java/test/wsdl/terra/TerraService.WSDL
> Schema Snippet:
>       <s:element name="CountPlacesInRect">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="1" maxOccurs="1" name="upperleft" type="tns:LonLatPt"
/>
>             <s:element minOccurs="1" maxOccurs="1" name="lowerright" type="tns:LonLatPt"
/>
>             <s:element minOccurs="1" maxOccurs="1" name="ptype" type="tns:PlaceType"
/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:simpleType name="PlaceType">
>         <s:restriction base="s:string">
>           <s:enumeration value="UnknownPlaceType" />
>           <s:enumeration value="AirRailStation" />
>           <s:enumeration value="BayGulf" />
>           <s:enumeration value="CapePeninsula" />
>           <s:enumeration value="CityTown" />
>           <s:enumeration value="HillMountain" />
>           <s:enumeration value="Island" />
>           <s:enumeration value="Lake" />
>           <s:enumeration value="OtherLandFeature" />
>           <s:enumeration value="OtherWaterFeature" />
>           <s:enumeration value="ParkBeach" />
>           <s:enumeration value="PointOfInterest" />
>           <s:enumeration value="River" />
>         </s:restriction>
>       </s:simpleType>
> Problem: Axis2 generated code does not generate an ADBBean for PlaceType.java. It just
creates methods using String since that is the restriction base. Axis1.X generates a bean
for PlaceType.java and has the list of possible values as well (and allows only those to be
get/set on the field). See enclosed java file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message