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)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soapenv:Header/>
<soapenv:Body>
<tem:GetBalances>
<tem:customerIds>
<arr:guid>228B8C4E-D395-F87D-0000-00000013022F</arr:guid>
</tem:customerIds>
<tem:brandName></tem:brandName>
<tem:currencyCode>EUR</tem:currencyCode>
</tem:GetBalances>
</soapenv:Body>
</soapenv:Envelope>
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