Valkenswaard
13 years agoNew Contributor
Tab Forms and arrays
Hello ,
In the Wsdl that is published by my Delphi-server the following XML-code is generated:
I want to pass this array in a request message. My trial version of SoapUI PRO 4.5.0 has a tab ‘Form’ for Requests, that provides me with special buttons to add/delete/clear items to this array. But however, the array that is presented to me on the tab 'Form' is a mess and useless. It is mixed up with other elements of the request.
When I change this generated part to
the tab "Forms' works fine and I can add and delete new items in the array as much as I want.
However I have the feeling that the first part is also correct, but is only handled wrongly by SoapUi. When I use the first part in other tools like Mapforce, the request of operation with this first part can be used with no problems.
Does anyone know if I'm doing something wrong?
Regards, Jan
In the Wsdl that is published by my Delphi-server the following XML-code is generated:
<xs:complexType name="Array_Of_Afdeling">
<xs:complexContent>
<xs:restriction base="soapenc:Array">
<xs:sequence/>
<xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:Afdeling[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="Afdeling">
<xs:sequence>
<xs:element name="Kode" type="xs:string"/>
<xs:element name="Naam" type="xs:string"/>
</xs:sequence>
</xs:complexType>
I want to pass this array in a request message. My trial version of SoapUI PRO 4.5.0 has a tab ‘Form’ for Requests, that provides me with special buttons to add/delete/clear items to this array. But however, the array that is presented to me on the tab 'Form' is a mess and useless. It is mixed up with other elements of the request.
When I change this generated part to
<xs:complexType name="Array_Of_Afdeling">
<xs:sequence>
<xs:element name="Afdelingen" type="s1:Afdeling" minOccurs="0" maxOccurs="unbounded"/>
<xs:sequence>
</xs:complexType>
<xs:complexType name="Afdeling">
<xs:sequence>
<xs:element name="Kode" type="xs:string"/>
<xs:element name="Naam" type="xs:string"/>
</xs:sequence>
</xs:complexType>
the tab "Forms' works fine and I can add and delete new items in the array as much as I want.
However I have the feeling that the first part is also correct, but is only handled wrongly by SoapUi. When I use the first part in other tools like Mapforce, the request of operation with this first part can be used with no problems.
Does anyone know if I'm doing something wrong?
Regards, Jan