cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4238
Views
2
Helpful
15
Replies

updatePhone Lines not working in AXL 10.5 with PHP

nkleven
Level 4
Level 4

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

15 Replies 15

lcwittebol
Level 1
Level 1

I worked it out ignore me