I
isbjoern04
Hi,
I developped a WS with IBM tools and used the wsdl in Visual Studio
2003 to add a Web Reference in my client.
I have no problems with methods returning a simple type (ex. boolean)
or complexType (ex. AccountInfo (a class defined by myself)).
Though I got en empty object, when I am calling a method returning an
array of complex type (AccountInfo). I checked the SOAP message and
it contains all the informations.
In the wsdl the array is defined by an unbouned element:
<complexType name="AccountInfo">
<sequence>
<element name="number" type="xsd:long"/>
<element name="owner" nillable="true"
type="xsd:string"/>
<element name="label" nillable="true"
type="xsd:string"/>
<element name="rubrique" nillable="true"
type="xsd:string"/>
<element name="balance" type="xsd:long"/>
<element name="currencyIso" nillable="true"
type="xsd:string"/>
<element name="availableAmount"
type="xsd:long"/>
</sequence>
</complexType>
<element name="getAccountsResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded"
name="getAccountsReturn" type="impl:AccountInfo"/>
</sequence>
</complexType>
</element>
Did someone return successfully an array (of simple or complex) type
in a ws method call?
Anne C.
I developped a WS with IBM tools and used the wsdl in Visual Studio
2003 to add a Web Reference in my client.
I have no problems with methods returning a simple type (ex. boolean)
or complexType (ex. AccountInfo (a class defined by myself)).
Though I got en empty object, when I am calling a method returning an
array of complex type (AccountInfo). I checked the SOAP message and
it contains all the informations.
In the wsdl the array is defined by an unbouned element:
<complexType name="AccountInfo">
<sequence>
<element name="number" type="xsd:long"/>
<element name="owner" nillable="true"
type="xsd:string"/>
<element name="label" nillable="true"
type="xsd:string"/>
<element name="rubrique" nillable="true"
type="xsd:string"/>
<element name="balance" type="xsd:long"/>
<element name="currencyIso" nillable="true"
type="xsd:string"/>
<element name="availableAmount"
type="xsd:long"/>
</sequence>
</complexType>
<element name="getAccountsResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded"
name="getAccountsReturn" type="impl:AccountInfo"/>
</sequence>
</complexType>
</element>
Did someone return successfully an array (of simple or complex) type
in a ws method call?
Anne C.