Witam
Mam problem z odebraniem wartości zwracanej przez usługę sieciową.
  1. <?php
  2. $ws = new soapclient('http://adres');
  3. $gat = $ws->call('lista_gatunkow');
  4. ?>

Fukcja lista_gatunkow jest bezparametrowa i powinna zwracac tablice gatunkow, tymczasem print_r($gat) daje pustkę.
Sama usługa działa, gdyż print_r($ws->response) daje
  1. HTTP/1.1 200 OK
  2. Date: Mon, 23 Jan 2006 13:50:37 GMT
  3. Server: Apache/1.3.29 (Win32)
  4. php/5.0.5 X-Powered-By: php/5.0.5
  5. Connection: close
  6. Content-Type: text/html; charset=iso-8859-2
  7.  
  8. <?xml version="1.0" encoding="UTF-8"?>
  9. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:ksiegarnia" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  10. <SOAP-ENV:Body>
  11. <ns1:lista_gatunkowResponse>
  12. <lista_gatunkowReturn SOAP-ENC:arrayType="SOAP-ENC:Struct[3]" xsi:type="SOAP-ENC:Array">
  13. <item xsi:type="SOAP-ENC:Struct">
  14. <Id xsi:type="xsd:string">1</Id>
  15. <Nazwa xsi:type="xsd:string">Krymina3</Nazwa>
  16. </item>
  17. <item xsi:type="SOAP-ENC:Struct">
  18. <Id xsi:type="xsd:string">2</Id>
  19. <Nazwa xsi:type="xsd:string">SF</Nazwa>
  20. </item>
  21. <item xsi:type="SOAP-ENC:Struct">
  22. <Id xsi:type="xsd:string">3</Id>
  23. <Nazwa xsi:type="xsd:string">Romans</Nazwa>
  24. </item>
  25. </lista_gatunkowReturn>
  26. </ns1:lista_gatunkowResponse>
  27. </SOAP-ENV:Body>
  28. </SOAP-ENV:Envelope>


W czym moze byc problem?
Z gory dziekuję za pomoc