[ 
http://jira.codehaus.org/browse/XFIRE-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_91578
 ] 

Jesper Goertz commented on XFIRE-910:
-------------------------------------

Attached 4 echo wsdl files demonstrates problem.

In xfire 1.2.4 echo and echo1 get wrapped while echo2 and echo3 get bare, which 
is as it should be since a list  is returned.

In xfire 1.2.5 echo1 and echo2 get wrapped, which is wrong for echo2 where the 
EchoResponse holder class contains a List<String> but it is not used, instead a 
String is returned.

In xfire 1.2.5 echo and echo3 get bare, it seems that element ref confuses 
wsgen.

> Operation return type lists not generated
> -----------------------------------------
>
>                 Key: XFIRE-910
>                 URL: http://jira.codehaus.org/browse/XFIRE-910
>             Project: XFire
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 1.2.5
>            Reporter: Martin Tilma
>         Assigned To: Dan Diephouse
>         Attachments: echo.zip
>
>
> I have a problem with Lists while generating code from WSDL
> When you look at the code below the return type of the method is Datastream. 
> I aspect a List of Datastream objects. Is this a bug?
> wsdl:
>   <element name="getDatastreams">
>     <complexType>
>       <sequence>
>         <element name="pid" type="xsd:string"/>
>         <element name="asOfDateTime" type="xsd:string"/>
>         <element name="dsState" type="xsd:string"/>
>       </sequence>
>     </complexType>
>   </element>
>   <element name="getDatastreamsResponse">
>     <complexType>
>       <sequence>
>         <element name="datastream" minOccurs="0" maxOccurs="unbounded" 
> type="fedora-types:Datastream"/>
>       </sequence>
>     </complexType>
>   </element> 
> in 1.2.5:
>     @WebMethod(operationName = "getDatastreams", action = 
> "http://www.fedora.info/definitions/1/0/api/#getDatastreams";)
>     @WebResult(name = "datastream", targetNamespace = "")
>     public Datastream getDatastreams(
>         @WebParam(name = "pid", targetNamespace = "")
>         String pid,
>         @WebParam(name = "asOfDateTime", targetNamespace = "")
>         String asOfDateTime,
>         @WebParam(name = "dsState", targetNamespace = "")
>         String dsState);

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to