You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Manish Garg <Ga...@michigan.gov> on 2008/07/23 18:34:47 UTC

[jira] Assigned: (TUSCANY-978) TuscanyClient for handling array of complextypes from a webservice

Hi ,

I am trying to use array of complex types (E.x. Employee( Name and Dsgn )  using SDO sample .  I am unable  to create SCA client which can handle 
array of objects returned from Webservice .  I am able to generate SDO classes using same approach as given in SDO sample using arrayaccessors .



My web service response is this 

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
        <detailsResponse xmlns="http://ws.mdot.org">
            <detailsReturn>
                <name>MDOT1</name>
                <dsgn>22</dsgn>
            </detailsReturn>
            <detailsReturn>
                <name>MDOT</name>
                <dsgn>2</dsgn>
            </detailsReturn>
        </detailsResponse>
    </soapenv:Body>
</soapenv:Envelope>


Thanks

Manish Garg 

517 241 4205 - W


Re: [jira] Assigned: (TUSCANY-978) TuscanyClient for handlingarray of complextypes from a webservice

Posted by Raymond Feng <en...@gmail.com>.
Hi,

What does your java method look like for the "details" operation?

public DetailsReturn[] details(...)?

I think we support array as the representation of repeating elements for 
SDO. For JAXB, we also support Collection types.

Thanks,
Raymond

--------------------------------------------------
From: "Manish Garg" <Ga...@michigan.gov>
Sent: Wednesday, July 23, 2008 9:34 AM
To: <tu...@ws.apache.org>
Subject: [jira] Assigned: (TUSCANY-978) TuscanyClient for handlingarray of 
complextypes from  a webservice

> Hi ,
>
> I am trying to use array of complex types (E.x. Employee( Name and Dsgn ) 
> using SDO sample .  I am unable  to create SCA client which can handle
> array of objects returned from Webservice .  I am able to generate SDO 
> classes using same approach as given in SDO sample using arrayaccessors .
>
>
>
> My web service response is this
>
> <?xml version="1.0" encoding="utf-8"?>
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>        <detailsResponse xmlns="http://ws.mdot.org">
>            <detailsReturn>
>                <name>MDOT1</name>
>                <dsgn>22</dsgn>
>            </detailsReturn>
>            <detailsReturn>
>                <name>MDOT</name>
>                <dsgn>2</dsgn>
>            </detailsReturn>
>        </detailsResponse>
>    </soapenv:Body>
> </soapenv:Envelope>
>
>
> Thanks
>
> Manish Garg
>
> 517 241 4205 - W
>
>