[ http://issues.apache.org/jira/browse/AXIS2-981?page=all ]

Davanum Srinivas resolved AXIS2-981.
------------------------------------

    Resolution: Fixed

Checked in a fix in r432572. Codegen works, need to do thorough testing for 
runtime behavior.

-- dims

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to