Array of objects[] as an incoming parameter
Posted: Wed Mar 09, 2016 10:58 am
Is it possible to list amongst incoming parameters an array of objects in SOAP 1.1?
When I invoke the method conteining incoming parameters of "order_type" I get SOAP ERROR: encoding vaiolation.
The incoming parameters of the method are described like this:
Please write soon
Thanks,
Natalia
When I invoke the method conteining incoming parameters of "order_type" I get SOAP ERROR: encoding vaiolation.
The incoming parameters of the method are described like this:
Code: Select all
<complexType name="order_type">
<sequence>
<element name="department" type="string"/>
< ... >
<element name="guest" type="s:guest_array_type"/>
<element name="route" type="s:route_array_type"/>
< ... >
<element name="baby_car_seat" type="s:baby_car_seat_type"/>
</sequence>
</complexType>
<complexType name="guest_type">
<sequence>
<element name="guest_name" type="string"/>
<element name="guest_surname" type="string"/>
<element name="guest_phone" type="string"/>
</sequence>
</complexType>
<complexType name="guest_array_type">
<sequence>
<element name="guest_array" type="s:guest_type" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="route_type">
<sequence>
<element name="address" type="string"/>
<element name="longitude" type="double"/>
<element name="latitude" type="double"/>
<element name="flight" type="string"/>
</sequence>
</complexType>
<complexType name="route_array_type">
<sequence>
<element name="route_array" type="s:route_type" minOccurs="2" maxOccurs="unbounded"/>
</sequence>
</complexType>
Thanks,
Natalia