<?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 Re: Uncaught SoapFault exception: [HTTP] Unable to parse URL. in Management</title>
    <link>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419138#M3693</link>
    <description>&lt;P&gt;I forgot to mention, the post I made also applies to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$client-&amp;gt;__setLocation('C:/.../AXLAPI.wsdl'); 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 15:35:02 GMT</pubDate>
    <dc:creator>npetrele</dc:creator>
    <dc:date>2021-06-16T15:35:02Z</dc:date>
    <item>
      <title>Uncaught SoapFault exception: [HTTP] Unable to parse URL.</title>
      <link>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4418749#M3691</link>
      <description>&lt;P&gt;I have seen a lot of discussions of this problem on the internet but I couldn't find a solution that would work for me so far.&lt;/P&gt;&lt;P&gt;I'm writing a php script that would create a line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The commented section is what I used and it didn't work. And I've changed personal info in the code of course.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php
/*
ini_set('soap.wsdl_cache_enabled',0);
ini_set('soap.wsdl_cache_ttl',0);
$options = [
    'cache_wsdl'=&amp;gt; WSDL_CACHE_NONE,
    'trace'=&amp;gt; 1,
    'stream_context' =&amp;gt; stream_context_create(
        [
            'ssl' =&amp;gt; [
                'verify_peer'       =&amp;gt; false,
                'verify_peer_name'  =&amp;gt; false,
                'allow_self_signed' =&amp;gt; true
            ]
        ]
    )
];
*/
$hostname = '10.10.10.10';
$SCHEMA = "C:/.../schema/10.5/AXLAPI.wsdl";
$client = new SoapClient($SCHEMA,
            array(
			$options,
		'trace'=&amp;gt;true,
                  'exceptions'=&amp;gt;true,              
                  'login'=&amp;gt;'User',
                  'password'=&amp;gt;'123',
                 ));
				 
$client-&amp;gt;__setLocation('C:/.../schema/10.5/AXLAPI.wsdl'); 
 */
$config = array("line"=&amp;gt;
	array(
        "pattern"=&amp;gt;"111111",
		"description"=&amp;gt;"Operator",
		"usage"=&amp;gt;"Device",
		"routePartitionName"=&amp;gt;"Internal",
		"callForwardAll"=&amp;gt;array("callingSearchSpaceName"=&amp;gt;"Internal",
			"destination"=&amp;gt;"101010"),
		"callPickupGroupName"=&amp;gt;"Internal",
		"alertingName"=&amp;gt;"Оператор",
		"asciiAlertingName"=&amp;gt;"Operator",
		"allowCtiControlFlag"=&amp;gt;"true"
		)
                    );
$response = $client-&amp;gt;addLine($config);
print_r($response);&lt;/PRE&gt;&lt;P&gt;I'm getting this error when I try to run it: "&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;&lt;SPAN&gt;: Uncaught SoapFault exception: [HTTP] Unable to parse URL in C:\...\index.php:66 Stack trace: #0 [internal function]: SoapClient-&amp;gt;__doRequest('&amp;lt;?xml version="...', 'C:/xampp/htdocs...', 'CUCM:DB ver=10....', 1, false) #1 C:\...\index.php(66): SoapClient-&amp;gt;__call('getPhone', Array) #2 {main} thrown in&amp;nbsp;&lt;/SPAN&gt;C:\...\index.php" on this line:&lt;/P&gt;&lt;P&gt;$response = $client-&amp;gt;addLine($config);&lt;/P&gt;&lt;P&gt;I tried to use getPhone function (it's an example from AXL documentation) just to check if it would work:&lt;/P&gt;&lt;PRE&gt;$hostname = '10.10.10.10'; &lt;BR /&gt;$SCHEMA = "C:/.../schema/10.5/AXLAPI.wsdl"; &lt;BR /&gt;$client = new SoapClient($SCHEMA,&lt;BR /&gt;array(&lt;BR /&gt;$options,&lt;BR /&gt;'trace'=&amp;gt;true,&lt;BR /&gt;'exceptions'=&amp;gt;true, &lt;BR /&gt;'login'=&amp;gt;'User',&lt;BR /&gt;'password'=&amp;gt;'123',&lt;BR /&gt;));				 
$client-&amp;gt;__setLocation('C:/.../AXLAPI.wsdl'); 
$payload = array(
        "name"=&amp;gt;"11111",
        "returnedTags"=&amp;gt;array("name"=&amp;gt;"",
                        "description"=&amp;gt;"",
                        "product"=&amp;gt;"",
                        "class"=&amp;gt;"",
                        "protocol"=&amp;gt;""
                        )
                    );

    $response = $client-&amp;gt;getPhone($payload);&lt;/PRE&gt;&lt;P&gt;It failed again with the same message on&amp;nbsp;&lt;STRONG&gt;$response = $client-&amp;gt;getPhone($payload);&amp;nbsp;&lt;/STRONG&gt;line.&lt;/P&gt;&lt;P&gt;I really don't know what to do now because I tried so many solutions already but they didn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Jun 2021 03:58:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4418749#M3691</guid>
      <dc:creator>00uwc6b9nuqTjRblt5d6</dc:creator>
      <dc:date>2021-06-16T03:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught SoapFault exception: [HTTP] Unable to parse URL.</title>
      <link>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419071#M3692</link>
      <description>&lt;P&gt;I'm just lobbing spitballs here (that is, I haven't looked deeply into this, just taking a wild guess).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$SCHEMA = "C:/.../schema/10.5/AXLAPI.wsdl";&lt;/PRE&gt;
&lt;P&gt;I'm not certain that is a problem, but I wouldn't do that. Instead, go to the folder where your PHP application exists and point to the AXLAPI files like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$SCHEMA = ".\..\..\schema\10.5\AXLAPI.wsdl"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice I left out "C:" and used backslashes not slashes. That's because I assume you're running Windows. And Windows doesn't understand "...", which is why I just used 2 dots twice. There's no need to include C: unless your PHP files are on another drive, in which case that path shouldn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, if your PHP is on drive C:, it's possible PHP makes up for these things and your $SCHEMA reference is just fine. I haven't tested it, yet. The above is simply how I'd approach it by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, open a CMD window, go to your PHP file's directory, and then cd .\..\..\schema\10.5 and make sure all 3 AXLAPI files are there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 14:06:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419071#M3692</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2021-06-16T14:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught SoapFault exception: [HTTP] Unable to parse URL.</title>
      <link>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419138#M3693</link>
      <description>&lt;P&gt;I forgot to mention, the post I made also applies to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$client-&amp;gt;__setLocation('C:/.../AXLAPI.wsdl'); 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:35:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419138#M3693</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2021-06-16T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught SoapFault exception: [HTTP] Unable to parse URL.</title>
      <link>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419154#M3694</link>
      <description>&lt;P&gt;I think __setLocation() should be for providing the URL of the AXL service endpoint, e.g.: &lt;A href="https://cucmhost:8443/axl/" target="_blank"&gt;https://cucmhost:8443/axl/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this set of AXL+PHP samples: &lt;A href="https://github.com/CiscoDevNet/axl-php-samples" target="_blank"&gt;https://github.com/CiscoDevNet/axl-php-samples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:56:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419154#M3694</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2021-06-16T15:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught SoapFault exception: [HTTP] Unable to parse URL.</title>
      <link>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419355#M3695</link>
      <description>&lt;P&gt;Now the path&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;is being read incorrectly and I'm getting this message: "Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '\schema&amp;#8;.5\AXLAPI.wsdl'"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 23:17:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/uncaught-soapfault-exception-http-unable-to-parse-url/m-p/4419355#M3695</guid>
      <dc:creator>00uwc6b9nuqTjRblt5d6</dc:creator>
      <dc:date>2021-06-16T23:17:30Z</dc:date>
    </item>
  </channel>
</rss>

