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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/02/05 08:38:06 UTC
[jira] Assigned: (AXIS2-1725) Wrong WSDL generation: data type
relations are broken
[ https://issues.apache.org/jira/browse/AXIS2-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi reassigned AXIS2-1725:
---------------------------------------------------
Assignee: Deepal Jayasinghe (was: Amila Chinthaka Suriarachchi)
> Wrong WSDL generation: data type relations are broken
> -----------------------------------------------------
>
> Key: AXIS2-1725
> URL: https://issues.apache.org/jira/browse/AXIS2-1725
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.1
> Reporter: Jabber W
> Assigned To: Deepal Jayasinghe
>
> say, there are data types:
> public class A {
> public String getSomeString();
> public void setSomeString(String s);
> public A getSomeLink();
> public void setSomeLink(A a);
> }
> and
> public class B extends A {
> public int getSomeInt();
> public void setSomeInt(int i);
> }
> 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>
> Since complexType B is not extension of ? it (the B type element) can't be passed as the someLink.
> Expected behaviour: B should be extended from A:
> <xs:complexType name="B">
> <xs:complexContwnt>
> <xs:extension base="ns:A">
> <xs:sequence>
> <xs:element name="someInt" type="xs:int"/>
> </xs:sequence>
> <xs:extension
> </xs:complexContwnt>
> </xs:complexType>
> This is the way Axis1 (axis121, for instance) generates the WSDL, WL9.2 and WAS 6.1 as well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org