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 2007/06/11 20:57:26 UTC

[jira] Resolved: (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 ]

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