Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [SOAP] typ złożony array -> objekt
rakso83
post
Post #1





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 29.09.2007

Ostrzeżenie: (0%)
-----


Witam,

Stworzyłem sobie połącznie soap i jako odpowiedź chcę wysłać tablice obiektów danej klasy.

W wsdl mam:
  1.      <complexType name="Domain">
  2.        <xsd:all>
  3.              <xsd:element name="id" type="xsd:int"/>
  4.              <xsd:element name="user_id" type="xsd:int"/>
  5.              <xsd:element name="name" type="xsd:string"/>
  6.        </xsd:all>
  7.      </complexType>
  8.      <xsd:complexType name="DomainArray">
  9.            <xsd:complexContent>
  10.                  <xsd:restriction base="SOAP-ENC:Array">
  11.                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Domain[]"/>
  12.                  </xsd:restriction>
  13.            </xsd:complexContent>
  14.        </xsd:complexType>
  15.  
  16. [...]
  17.  <message name="Domain_addResponse">
  18.    <part name="return" type="tns:DomainArray"/>
  19.  </message>


Jak to odczytać po stronie klienta? Tak, żeby nadal to była ta sama tablica?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 18:43