[cisco-voip] Problem with AXL-SOAP

Aurelien FACHAUX aurelienfachaux at hotmail.com
Wed Sep 29 05:38:32 EDT 2004


Hi everybody,

I am working about a PHP interface that manages IP phones and Cisco Call 
Managerwith AXL-SOAP methods.

I am doing this style of requests :
$client = new 
soapclient("http://CCM_IP_ADDRESS/CCMApi/AXL/V1/soapisapi.dll");
$err = $client->getError();
if ($err) {
  echo "<h2>Constructor error</h2>" . $err . "";
}
$client->setCredentials("login", "password");
// UPDATEPHONE PARAMETRERS
$params = 
array('name'=>'PhoneName','lines'=>array('line'=>array('label'=>'PhoneLabel','display'=>'Test','dirn'=>'DNDN','ringSetting'=>'Use 
System 
Default'),'lineIdentifier'=>array('directoryNumber'=>'DNDN','routePartitionName'=>'Generated_IPMA_Everyone')));
$client->call("updatePhone", $params, "http://www.cisco.com/AXL/1.0");

if ($client->fault) {
  echo "<h2>Faute...</h2>";
} else {
  $err = $client->getError();
  if ($err) {
   echo "<h2>Erreur</h2>" . $err . "";
  } else {
   echo "<h2>Opération OK</h2>";
  }
}
echo "<h2>Requête</h2>" . htmlspecialchars($client->request, ENT_QUOTES) . 
"";
echo "<h2>Réponse</h2>" . htmlspecialchars($client->response, ENT_QUOTES) . 
"";
echo "<h2>Débogage</h2>" . htmlspecialchars($client->debug_str, ENT_QUOTES) 
. "";

And I have an error because an attribute is missing in my syntax.
<![CDATA[Unexpected element. The <line> element requires an index 
attribute.]]>
But I don't know how to add (and where in my code) this attribute !!!

If you have some advice, don't hesitate to contact me.

Faithfully.
Aurélien.

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !  
http://search.msn.fr



More information about the cisco-voip mailing list