You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rudy Commenge <ru...@gmail.com> on 2012/01/03 09:20:32 UTC

How to pass an array to a service using GET binding ?

Hi,

First of all, HAPPY NEW YEAR !!!

In a WSDL, I have defined a WS operation with the following input message :

<wsdl:message name="myOperationRequest">
    <wsdl:part name="parameters" element="tns:myOperation"></wsdl:part>
</wsdl:message>

<element name="myOperation" type="tns:OperationTypeIn">

<complexType name="OperationTypeIn">
    <sequence>
        <element name="param" type="tns:ParamsIdentifiersType"
minOccurs="0" maxOccurs="unbounded"></element>
    </sequence>
</complexType>

<complexType name="ParamsIdentifiersType">
    <sequence>
        <element name="id1" type="int"></element>
        <element name="id2" type="int"></element>
    </sequence>
</complexType>

I have also defined 2 binding parts : SOAP and GET.

I am able to invoke the above operation using soap.
But I don't know how to pass the "param" array in a GET request.
Can you help me to write a correct GET request ?

Best regards,

Rudy.