I want to update a value for NUMBER from below wsdl
:
<subscriberProfile>
<!--Zero or more repetitions:-->
<entry>
<!--Optional:-->
<key>NUMBER</key>
<!--Optional:-->
<value>23546</value>
</entry>
</subscriberProfile>
The php script to update this is:
<?php
try {
$client = new SoapClient("http://urlwsdl/services/SubscriberService?wsdl", array('trace' => 1));
$data = $client->wsUpdateSubscriberProfile(array('IMEI' => '123456789', 'subscriberID' => '6282818964330'));
print_r($data);
} catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
exit();
}
But the above script did not send this part:
<subscriberProfile>
<!--Zero or more repetitions:-->
<entry>
<!--Optional:-->
<key>NUMBER</key>
<!--Optional:-->
<value>23546</value>
</entry>
</subscriberProfile>
and give me the response:
<return>
<responseCode>401</responseCode>
<responseMessage>Subscriber profile not received</responseMessage>
</return>
Any idea, how to solve this?