[jbossws-issues] [JBoss JIRA] Updated: (JBWS-1524) WSTools does not handle more than 2 levels of Class Hierarchy properly

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Mon Feb 18 05:03:44 EST 2008


     [ http://jira.jboss.com/jira/browse/JBWS-1524?page=all ]

Thomas Diesler updated JBWS-1524:
---------------------------------

    Assignee:     (was: Darran Lofthouse)

> WSTools does not handle more than 2 levels of Class Hierarchy properly
> ----------------------------------------------------------------------
>
>                 Key: JBWS-1524
>                 URL: http://jira.jboss.com/jira/browse/JBWS-1524
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: tools-jaxrpc
>         Environment: JBoss4.0.5GA WSTools
>            Reporter: Magesh Kumar B
>             Fix For: community contributions
>
>         Attachments: AdminResponseDataWS.java, ResponseDataWS.java, SessionDataWS.java, SessionResponseDataWS.java, StartSessionResponseDataWS.java
>
>
> Consider the following SEI
> package com.intuit.fibcm.service;
> import com.intuit.fibcm.fibcmwsobjects.*;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface WSTestServiceSEI extends Remote
> {
>    public StartSessionResponseDataWS startSession (String input) throws RemoteException;
> }
> Using the following config.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <!--This is the config file used by jbossws to generate a wsdl-->
> <configuration>
>     <java-wsdl>
>       <service name="SampleService" parameter-style="bare" endpoint="com.intuit.fibcm.service.WSTestServiceSEI" />
>       <namespaces target-namespace="http://com.ball.wstest" 
>          type-namespace="http://com.ball.wstest/types"/>
>       <mapping file="jaxrpc-mapping.xml"/>
>       <webservices servlet-link="WSTestEndpoint"/>
>     </java-wsdl>
> </configuration>
> along with the attached Class files defining the hierarchy
> ResponseDataWS --> AdminResponseDataWS --> SessionResponseDataWS --> StartSessionResponseDataWS
> the following wsdl is generated which is wrong:
>    <complexType name='AdminResponseDataWS'>
>     <complexContent>
>      <extension base='tns:ResponseDataWS'>
>       <sequence/>
>      </extension>
>     </complexContent>
>    </complexType>
>    <complexType name='ResponseDataWS'>
>     <sequence>
>      <element name='sessionData' nillable='true' type='tns:SessionDataWS'/>
>     </sequence>
>    </complexType>
>    <complexType name='SessionDataWS'>
>     <sequence/>
>    </complexType>
>    <complexType name='SessionResponseDataWS'>
>     <complexContent>
>      <extension base='tns:AdminResponseDataWS'>
>       <sequence>
>        <element name='sessionData' nillable='true' type='tns:SessionDataWS'/>
>       </sequence>
>      </extension>
>     </complexContent>
>    </complexType>
>   </schema>
>   <schema targetNamespace='http://com.ball.wstest/types' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:ns1='http://fibcmwsobjects.fibcm.intuit.com/jaws' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://com.ball.wstest/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
>    <import namespace='http://fibcmwsobjects.fibcm.intuit.com/jaws'/>
>    <complexType name='StartSessionResponseDataWS'>
>     <complexContent>
>      <extension base='ns1:SessionResponseDataWS'>
>       <sequence>
>        <element name='sessionData' nillable='true' type='ns1:SessionDataWS'/>
>        <element name='sessionData' nillable='true' type='ns1:SessionDataWS'/>
>       </sequence>
>      </extension>
>     </complexContent>
>    </complexType>
> At the 3rd level of the hierarchy the sessionData is added once, and at the 4th level it is added twice. But the 2nd level is generated correctly without any member elements.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list