You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2006/11/20 10:19:02 UTC
[jira] Assigned: (AXIS2-1749) Wrong Java2WSDL generation
[ http://issues.apache.org/jira/browse/AXIS2-1749?page=all ]
Deepal Jayasinghe reassigned AXIS2-1749:
----------------------------------------
Assignee: Deepal Jayasinghe
> Wrong Java2WSDL generation
> --------------------------
>
> Key: AXIS2-1749
> URL: http://issues.apache.org/jira/browse/AXIS2-1749
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Reporter: Jabber W
> Assigned To: Deepal Jayasinghe
>
> During the generation of type definitions Java2WSDL of axis2-1.1 flattens chains of extender java data types to independent schema types without extending relations between them, while Axis121 stores these relations by <extension base"">.
> For example: say,
> class A { public String someString; public A someLink; } and
> class B extends A { public int someInt; }
> and the exposed service is:
> class MySvc { String myOp(A arg) {..} }
> Running of Java2WSDL on it:
> java2wsdl -cn MySvc -xc B
> creates 2 non-related types:
> <xs:complexType name="A">
> <xs:sequence>
> <xs:element name="someLink" type="ns:A"/>
> <xs:element name="someString" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> and
> <xs:complexType name="B">
> <xs:sequence>
> <xs:element name="someLink" type="ns:A"/>
> <xs:element name="someString" type="xs:string"/>
> <xs:element name="someInt" type="xs:int"/>
> </xs:sequence>
> </xs:complexType>
> while B should be:
> <xs:complexType name="B">
> <xs:complexContent>
> <xs:extension base="ns:A">
> <xs:sequence>
> <xs:element name="someInt" type="xs:int"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> Since complexType B is not extension of ? it (the B type element) can't be passed as the someLink.
--
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