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 "Jabber W (JIRA)" <ji...@apache.org> on 2006/11/16 19:15:41 UTC
[jira] Created: (AXIS2-1725) Wrong WSDL generation: data type
relations are broken
Wrong WSDL generation: data type relations are broken
-----------------------------------------------------
Key: AXIS2-1725
URL: http://issues.apache.org/jira/browse/AXIS2-1725
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Affects Versions: 1.1
Reporter: Jabber W
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.
-
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
[jira] Assigned: (AXIS2-1725) Wrong WSDL generation: data type
relations are broken
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (AXIS2-1725) Wrong WSDL generation: data type
relations are broken
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-1725:
------------------------------------
Assignee: 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: Amila Chinthaka Suriarachchi
>
> 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
[jira] Resolved: (AXIS2-1725) Wrong WSDL generation: data type
relations are broken
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe resolved AXIS2-1725.
--------------------------------------
Resolution: Fixed
issue is fixed in current trunk.
> 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
> Assignee: 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