Stworzyłem sobie połącznie soap i jako odpowiedź chcę wysłać tablice obiektów danej klasy.
W wsdl mam:
<complexType name="Domain"> <xsd:all> <xsd:element name="id" type="xsd:int"/> <xsd:element name="user_id" type="xsd:int"/> <xsd:element name="name" type="xsd:string"/> </xsd:all> </complexType> <xsd:complexType name="DomainArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Domain[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> [...] <message name="Domain_addResponse"> <part name="return" type="tns:DomainArray"/> </message>
Jak to odczytać po stronie klienta? Tak, żeby nadal to była ta sama tablica?