[SOAP Extension] Retrieve a "java array"

[email protected] (LR)
Newsgroups php.soap
Message-ID <[email protected]>
Hi,

I am writing a Java SOAP Server (Axis) and a PHP5 SOAP Client. The 
return type of the webservice is an object encapsulating the response 
with the fields :
- int errCode
- String errMessage
- MyProduct product
- MyProduct[] products;
- String base64file;

So, the webservice can return a product, a collection of products in an 
array or a file encoded in base64.

Everything works fine for one product and for a file. But when I try to 
retrieve a collection, I get nothing :

$soapClient = new SoapClient($myWsdl, array('trace'=>1);
$WSResponse = $soapclient->__soapCall( "getProducts", 
array($request->getRequest()) );
/*$request->getRequest() contains the parameters for this webmethod */

$WSResponse->getProductsReturn->products->products

The returned XML looks good :

<?xml version="1.0" encoding="windows-1250"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
     <getProductsResponse xmlns="http://webservice.compiere.dotbase.com">
       <getProductsReturn>
         <base64file xsi:nil="true"/>
         <base64fileMimeType xsi:nil="true"/>
         <errCode>0</errCode>
         <errMessage xsi:nil="true"/>
         <invoice xsi:nil="true"/>
         <invoices xsi:nil="true"/>
         <order xsi:nil="true"/>
         <orders xsi:nil="true"/>
         <payment xsi:nil="true"/>
         <payments xsi:nil="true"/>
         <product xsi:nil="true"/>
         <products>
           <products>
             <productDescription xsi:nil="true"/>
             <productId>1000425</productId>
             <productName>xxxxxxx</productName>
             <stock>0</stock>
           </products>
           <products>
             <productDescription xsi:nil="true"/>
             <productId>1000956</productId>
             <productName>wwwwwww</productName>
             <stock>0</stock>
           </products>
.....
         </products>
         <user xsi:nil="true"/>
         <users xsi:nil="true"/>
       </getProductsReturn>
     </getProductsResponse>
   </soapenv:Body>
</soapenv:Envelope>

With the java app SoapUI, everything is OK.

Where is the problem ? A bug in the php SOAP extension ? What should I do ?

Thank you for your help
Lilian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.