This document was generated from CDN thread Created by: kaiser cheng on 20-08-2009 02:54:48 PM HI,Can anyone help me in SOAP with PHP, I found CM7 SOAP example using Java and .Net How can I use PhP with AXL? what I found in CM4 SOAP code, but I found url is not the same anymore..Or I have to give up PHP? <?php $login = 'xxxxx; $password = 'xxxxxx'; $ccm = new SoapClient('http://xxx.xxx.xxx.xxx/CCMApi/AXL/V1/AXLAPI.wsdl', array( 'login' => $login, 'password' => $password ));> thankskaiserSubject: RE: CM7 with SOAP + PHP? Replied by: David Staudt on 20-08-2009 03:50:07 PMThe URL has changed as of CM5: https://[UCM_IP]:8443/axl Note also that this is an HTTPS/SSL connection (only)...you will need to use the local_cert option (and work through what look like some bugs/issues with SoapClient SSL support.)Subject: RE: CM7 with SOAP + PHP? Replied by: Chandar vr on 28-08-2009 07:23:42 AMHi, I changed the url as per the details in your replyhere is the code 1 2<?php
3$options = array( 'login' => 'login', 'password' => 'pass');
4$client = new SoapClient ( 'https://ipaddress:port/axl/' , $options ); 5 6$err = $s->getError();
7if ($err) {
8print $err;
9}
10?>
the error which i am getting is 12Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't find <definitions> in 'https://ipaddress:port/axl/' in a.php:11 Stack trace: #0 a.php(11): SoapClient->SoapClient('https://ipaddr....', Array) #1 {main} thrown in a.php on line 11 Please help me on this thanks/Chandar