cm7 with php and axl

Version 1
    This document was generated from CDN thread

    Created by: Chandar vr on 01-09-2009 02:28:49 PM
    Hi,
     
    I changed the url as per the details in your reply
    here 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
     
    1
    2Fatal 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

    Subject: RE: cm7 with php and axl
    Replied by: David Staudt on 01-09-2009 06:50:39 PM
    The URL you provide should have the actual IP address and port of the UCM server (unless you copy the AXLAPI.wsdl and axlsoap.xsd files to a local path on the webserver.)
     
    It looks like you have literally 'https://ipaddress:port/axl' which should look more something like 'https://10.88.131.133:8443/axl'.
     
    See this small how-to/sample for additional details: http://developer.cisco.com/web/axl/wikidocs?src=/wiki/display/AXL/how-to_PHP

    Subject: RE: cm7 with php and axl
    Replied by: Chandar vr on 03-09-2009 09:38:57 AM
    Hi
    I have downloaded the AXLAPI.wsdl and axlsoap.xsd files from the AXL SQL Toolkit,but there are AXLAPI.wsdl and axlsoap.xsd files in two direcories WSDL-AXIS and WSDL-NET. and also the files are in the root directory.
     
    Which one should i take ? I found that all the wsdl files are different from each other .
     
    Can you help me on this ?

    Subject: RE: cm7 with php and axl
    Replied by: David Staudt on 03-09-2009 01:51:26 PM
    The versions in the WSDL-AXIS and WSDL-NET are modifications of the 'stock' WSDL in the root folder, which have been tweaked to better compile with the Java Axis and Windows .NET WSDL compilers. 
     
    You will notice there is not a special version tweaked for use with the PHP WSDL consumer, so it may be hit-or-miss as to which of the 3 versions works best with PHP.  I had success using the stock WSDL for some simple PHP WSDL tests, but if you need to use all the nooks and crannies of AXL you may find that the Axis or .NET specific versions work better - or you may need to make your own tweaks to the WSDL to workaround any PHP limitations.

    Subject: RE: cm7 with php and axl
    Replied by: Chandar vr on 04-09-2009 09:26:57 AM
    Hi,
     
    But one more thing i found is whenever wsdl file is loaded using php , a temporary file is created in the tmp folder.
     
    Is it due to caching, and if i disable this in php.ini will the creation of temporary file be stopped ?

    Subject: RE: cm7 with php and axl
    Replied by: David Staudt on 04-09-2009 02:31:28 PM
    I would suspect so, but not sure.

    Subject: RE: cm7 with php and axl
    Replied by: Hayden McFadyen on 12-08-2010 12:41:12 AM
    I had success using the stock WSDL for some simple PHP WSDL tests


    Hi David,
     
    I'm having trouble authenticating with PHP and AXL, are you able to provide a working example please?
     
    Cheers
    Hayden

    Subject: RE: cm7 with php and axl
    Replied by: Sascha Monteiro on 13-08-2010 01:50:06 AM
    I had success using the stock WSDL for some simple PHP WSDL tests


    Hi David,
     
    I'm having trouble authenticating with PHP and AXL, are you able to provide a working example please?
     
    Cheers
    Hayden

    I am not using PHP, but in Java I put the username/password in the URL;
    https://axluser:axlpassword@1.1.1.1/axl/