I have seen several threads about this issue, but I don't see any accepted solutions. I am trying to run an updatePhones query to change things like Line Text Label on an existing phone and it's not working. For whatever reason, php seems to parse the entire <lines></lines> element from the XML before sending it to CUCM. Is this because it's not finding it in the wsdl? I've tried multiple versions of schema, including 11.0 and the result is the same.
Here is a snippet of the code I'm sending:
include 'axlConnection.php';
$line = array("line"=>array("index"=>"1","label"=>$label));
$response = $client->updatePhone(array("name"=>$deviceName,"description"=>"this works","lines"=>$line));
After sending the request, I output the value of $client->__getLastRequest(); in order to look at the actual XML request, and here is what I'm getting:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.cisco.com/AXL/API/10.5">
<SOAP-ENV:Body>
<ns1:updatePhone>
<name>SEP887556511A3F</name>
<description>this works</description>
</ns1:updatePhone>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
As you can see, the <lines> element is completely missing. This is driving me crazy! Any one else seen this before and been able to get around it?
Thanks in advance for your assistance.
Nate