<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AXL PHP Connection in Management</title>
    <link>https://community.cisco.com/t5/management/axl-php-connection/m-p/3895276#M3123</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to develop an IIS hosted webpage that will allow me to update phones without having to login to the UI.&amp;nbsp; I am new with SOAP and APIs in general and have followed Cisco's PHP guide on AXL connections.&amp;nbsp; We are running CUCM 11.5.&amp;nbsp; Postman query is successful, however am unsure how to get my connection to work via php file in IIS.&amp;nbsp; Test php file works no problem so IIS should not be the culprit.&amp;nbsp; Below is my code that is currently returning a 500 error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php

$host = "&amp;lt;FQDN of server&amp;gt;";
$username = "******";
$password = "**********";

$context =
    stream_context_create(array('ssl'=&amp;gt;array('allow_self_signed'=&amp;gt;true)));

$client = new SoapClient("C:\inetpub\wwwroot\PhoneSetup\AXLAPI.wsdl",
    array('trace'=&amp;gt;true,
   'exceptions'=&amp;gt;true,
   'location'=&amp;gt;"https://".$host.":8443/axl",
   'login'=&amp;gt;$username,
   'password'=&amp;gt;$password,
   'stream_context'=&amp;gt;$context

));

$response = $client-&amp;gt;getPhone(array("name"=&amp;gt;"	SEP5065F3B9AB95"));
?&amp;gt;&lt;/PRE&gt;&lt;P&gt;Any assistance as to where to start troubleshooting this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 03:27:31 GMT</pubDate>
    <dc:creator>chad_meyer</dc:creator>
    <dc:date>2019-07-23T03:27:31Z</dc:date>
    <item>
      <title>AXL PHP Connection</title>
      <link>https://community.cisco.com/t5/management/axl-php-connection/m-p/3895276#M3123</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to develop an IIS hosted webpage that will allow me to update phones without having to login to the UI.&amp;nbsp; I am new with SOAP and APIs in general and have followed Cisco's PHP guide on AXL connections.&amp;nbsp; We are running CUCM 11.5.&amp;nbsp; Postman query is successful, however am unsure how to get my connection to work via php file in IIS.&amp;nbsp; Test php file works no problem so IIS should not be the culprit.&amp;nbsp; Below is my code that is currently returning a 500 error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php

$host = "&amp;lt;FQDN of server&amp;gt;";
$username = "******";
$password = "**********";

$context =
    stream_context_create(array('ssl'=&amp;gt;array('allow_self_signed'=&amp;gt;true)));

$client = new SoapClient("C:\inetpub\wwwroot\PhoneSetup\AXLAPI.wsdl",
    array('trace'=&amp;gt;true,
   'exceptions'=&amp;gt;true,
   'location'=&amp;gt;"https://".$host.":8443/axl",
   'login'=&amp;gt;$username,
   'password'=&amp;gt;$password,
   'stream_context'=&amp;gt;$context

));

$response = $client-&amp;gt;getPhone(array("name"=&amp;gt;"	SEP5065F3B9AB95"));
?&amp;gt;&lt;/PRE&gt;&lt;P&gt;Any assistance as to where to start troubleshooting this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 03:27:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/axl-php-connection/m-p/3895276#M3123</guid>
      <dc:creator>chad_meyer</dc:creator>
      <dc:date>2019-07-23T03:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: AXL PHP Connection</title>
      <link>https://community.cisco.com/t5/management/axl-php-connection/m-p/3895495#M3124</link>
      <description>Hi Chad,&lt;BR /&gt;&lt;BR /&gt;i am no expert in PHP but it seems to be that there are Spaces in the String of the Device Name&lt;BR /&gt;&lt;BR /&gt;" SEP5065F3B9AB95". I would try to remove these Spaces so that the String becomes&lt;BR /&gt;&lt;BR /&gt;"SEP5065F3B9AB95".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Robert&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:01:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/axl-php-connection/m-p/3895495#M3124</guid>
      <dc:creator>ROBERT SCHUKNECHT</dc:creator>
      <dc:date>2019-07-23T09:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: AXL PHP Connection</title>
      <link>https://community.cisco.com/t5/management/axl-php-connection/m-p/3895625#M3125</link>
      <description>&lt;P&gt;Thanks for catching this Robert, however I am still receiving the same error after making that change.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:14:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/axl-php-connection/m-p/3895625#M3125</guid>
      <dc:creator>chad_meyer</dc:creator>
      <dc:date>2019-07-23T12:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: AXL PHP Connection</title>
      <link>https://community.cisco.com/t5/management/axl-php-connection/m-p/3897015#M3126</link>
      <description>&lt;P&gt;You may also need to either disable cert name checking, or download the CUCM Tomcat cert and reference it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	$context = stream_context_create(array('ssl'=&amp;gt;array('verify_peer_name'=&amp;gt;false,
		'allow_self_signed'=&amp;gt;true
		)));&lt;/PRE&gt;
&lt;PRE&gt;	$context = stream_context_create(array('ssl'=&amp;gt;array('verify_peer_name'=&amp;gt;true,
		'allow_self_signed'=&amp;gt;true,
		'cafile'=&amp;gt;"/var/www/html/PHP-Sample/DS-UCM105.cisco.com.pem"
		)));&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jul 2019 20:08:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/axl-php-connection/m-p/3897015#M3126</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2019-07-24T20:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: AXL PHP Connection</title>
      <link>https://community.cisco.com/t5/management/axl-php-connection/m-p/3897216#M3127</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;dstaudt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I have the tomcat cert (in pem format) listed in the directory listed in the PHP script. Even when I had it disabled I was receiving errors.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 03:32:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/axl-php-connection/m-p/3897216#M3127</guid>
      <dc:creator>chad_meyer</dc:creator>
      <dc:date>2019-07-25T03:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: AXL PHP Connection</title>
      <link>https://community.cisco.com/t5/management/axl-php-connection/m-p/3898237#M3130</link>
      <description>&lt;P&gt;Update - I found that I didn't have the soap extension DLL enabled in my PHP.ini file.&amp;nbsp; I enabled that then,still had issues then nulled out the certificate check and now my page loads, however to a white screen.&amp;nbsp; No error logs are shown in either IIS or PHP.&amp;nbsp; Getting closer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 12:25:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/axl-php-connection/m-p/3898237#M3130</guid>
      <dc:creator>chad_meyer</dc:creator>
      <dc:date>2019-07-26T12:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: AXL PHP Connection</title>
      <link>https://community.cisco.com/t5/management/axl-php-connection/m-p/3945059#M3208</link>
      <description>You won't see anything on your page as you have no output.&lt;BR /&gt;Add a&lt;BR /&gt;var_dump($response);&lt;BR /&gt;after&lt;BR /&gt;$response = $client-&amp;gt;getPhone(array("name"=&amp;gt;" SEP5065F3B9AB95"));&lt;BR /&gt;&lt;BR /&gt;and you will see the response</description>
      <pubDate>Tue, 22 Oct 2019 07:30:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/axl-php-connection/m-p/3945059#M3208</guid>
      <dc:creator>thedd</dc:creator>
      <dc:date>2019-10-22T07:30:15Z</dc:date>
    </item>
  </channel>
</rss>

