NUSoap - calling a method with typed arrays as a parameter
03:39 14 May 2012

I am using the NuSoap library to call a WCF web service.

I am stuck when calling a particular web method that has a typed array as one of it parameters.

When calling the web method via SOAP UI. I have something like this (and it works)


   
   
      
         
            228B8C4E-D395-F87D-0000-00000013022F           
         
         
         EUR
      
   

I am trying to call this same request usign NUSoap like this:

$params = array("customerIds" =>
            array(
                "guid" => '228B8C4E-D395-F87D-0000-00000013022F'
            ),
            "brandName" => "",
            "currencyCode" => "EUR"
        );

$result = $client->call('GetBalances', $params);

But unfortunately I do not get any results.

Any idea how the params array should be structed?

Thanks

php wcf soap nusoap