<?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: HowTo connect WebServices via SOAP/PHP5.6.x in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26415#M2301</link>
    <description>Ok, Those curl commands were to validate that it is a certificate error that you are encountering. your PHP is trying to validate the Netsight cert used in the HTTPS operation and is failing so it's not even trying to retrieve the call.     You need to enable self signed certificates with PHP in order for the soapclient to ignore the self signed certificate and continue retrieving the wsdl.    try using:  $contextOptions = array(      'ssl' =&amp;gt; array(          'allow_self_signed' =&amp;gt; true,      )  );  as shown here: http://stackoverflow.com/questions/12373328/how-do-i-get-the-php-soap-client-to-communicate-with-a-service-running-over-ssl</description>
    <pubDate>Fri, 18 Mar 2016 20:08:00 GMT</pubDate>
    <dc:creator>Matthew_Hum1</dc:creator>
    <dc:date>2016-03-18T20:08:00Z</dc:date>
    <item>
      <title>HowTo connect WebServices via SOAP/PHP5.6.x</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26412#M2298</link>
      <description>Hi community,&lt;BR /&gt;
I tried to connect the WebServices via SOAP/PHP in version 5.6.18.&lt;BR /&gt;
The short script should request all END-System MAC addresses from the NAC Appliance.&lt;BR /&gt;
Via https://......  it works fine with the right output.&lt;BR /&gt;
But my php script didn't work well because the wsdl file isn't accessible.&lt;BR /&gt;
I use the Extreme pdf document "OFC-Web-Services.pdf" to try some examples.&lt;BR /&gt;
&lt;BR /&gt;
ini_set("soap.wsdl_cache_enabled", "0");   //disable wsdl cache&lt;BR /&gt;
$wsdl = "&lt;A href="https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl%22" target="_blank" rel="nofollow noreferrer noopener"&gt;https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl"&lt;/A&gt;;&lt;BR /&gt;
$client = new SoapClient($wsdl, array(&lt;BR /&gt;
            'trace' =&amp;gt; 1,&lt;BR /&gt;
            'login' =&amp;gt; "root",&lt;BR /&gt;
            'password' =&amp;gt; "password",&lt;BR /&gt;
            'cache_wsdl' =&amp;gt; WSDL_CACHE_NONE,&lt;BR /&gt;
            'soap_version' =&amp;gt; SOAP_1_2&lt;BR /&gt;
));&lt;BR /&gt;
$response = $client-&amp;gt;getAllEndSystemMacs();&lt;BR /&gt;
print_r($response);&lt;BR /&gt;
?&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
The cli output looks like:&lt;BR /&gt;
PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from '&lt;A href="https://192.168.10.xx:8443/axis/services/NACWebService?wsdl" target="_blank" rel="nofollow noreferrer noopener"&gt;https://192.168.10.xx:8443/axis/services/NACWebService?wsdl&lt;/A&gt;' : failed to load external entity "&lt;A href="https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl%22" target="_blank" rel="nofollow noreferrer noopener"&gt;https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl"&lt;/A&gt;;&lt;BR /&gt;
 in C:\xampp\htdocs\soap\phptest.php on line 10&lt;BR /&gt;
PHP Fatal error:  Uncaught SoapFault exception: [wsdl] SOAP-ERROR: Parsing WSDL: Couldn't load from '&lt;A href="https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl" target="_blank" rel="nofollow noreferrer noopener"&gt;https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl&lt;/A&gt;&lt;BR /&gt;
' : failed to load external entity "&lt;A href="https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl%22" target="_blank" rel="nofollow noreferrer noopener"&gt;https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl"&lt;/A&gt;;&lt;BR /&gt;
 in C:\xampp\htdocs\soap\phptest.php:10&lt;BR /&gt;
Stack trace:&lt;BR /&gt;
#0 C:\xampp\htdocs\soap\phptest.php(10): SoapClient-&amp;gt;SoapClient('https://xxx.xxx...', Array)&lt;BR /&gt;
#1 {main}&lt;BR /&gt;
  thrown in C:\xampp\htdocs\soap\phptest.php on line 10&lt;BR /&gt;
I'm  not so familiar with the php versions but i guess that there was some  changes from the php version in the document and the actual version  5.6.18.&lt;BR /&gt;
I would be grateful for help&lt;BR /&gt;
&lt;BR /&gt;
regards&lt;BR /&gt;
&lt;BR /&gt;
Mike</description>
      <pubDate>Thu, 17 Mar 2016 19:45:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26412#M2298</guid>
      <dc:creator>Michael_Althoff</dc:creator>
      <dc:date>2016-03-17T19:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: HowTo connect WebServices via SOAP/PHP5.6.x</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26413#M2299</link>
      <description>Just a thought. Are you using a self signed cert on Netsight? Otherwise I think you need to have certificate validation disabled as described in:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://stackoverflow.com/questions/8443618/disable-certificate-verification-in-php-soapclient" target="_blank" rel="nofollow noreferrer noopener"&gt;http://stackoverflow.com/questions/84...&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
can you do a manual curl to the target?&lt;BR /&gt;
&lt;BR /&gt;
curl -u root:password "https://&amp;lt;Netsight%20IP&amp;gt;:8443/axis/services/NACWebService?wsdl" &lt;BR /&gt;
&lt;BR /&gt;
if it gives a certificate error try:&lt;BR /&gt;
&lt;BR /&gt;
curl -k -u root:password "https://&amp;lt;Netsight%20IP&amp;gt;:8443/axis/services/NACWebService?wsdl"</description>
      <pubDate>Thu, 17 Mar 2016 22:43:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26413#M2299</guid>
      <dc:creator>Matthew_Hum1</dc:creator>
      <dc:date>2016-03-17T22:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: HowTo connect WebServices via SOAP/PHP5.6.x</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26414#M2300</link>
      <description>Hi Matthew,&lt;BR /&gt;
&lt;BR /&gt;
thx for reply.&lt;BR /&gt;
I tried the curl connections. Without the insecure-option "-k" I got a certifikate error &lt;BR /&gt;
&lt;BR /&gt;
curl: (60) SSL certificate problem: unable to get local issuer certificate&lt;BR /&gt;
WIth the -k option I can read the wsdl-file succesfully.&lt;BR /&gt;
&lt;BR /&gt;
I had suspected that this is an issue with the access, but I cannot figure out where it come from, and how I can fix it.&lt;BR /&gt;
The example, described in the thread above isn't working for me.&lt;BR /&gt;
&lt;BR /&gt;
regards&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Mar 2016 18:28:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26414#M2300</guid>
      <dc:creator>Michael_Althoff</dc:creator>
      <dc:date>2016-03-18T18:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: HowTo connect WebServices via SOAP/PHP5.6.x</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26415#M2301</link>
      <description>Ok, Those curl commands were to validate that it is a certificate error that you are encountering. your PHP is trying to validate the Netsight cert used in the HTTPS operation and is failing so it's not even trying to retrieve the call.     You need to enable self signed certificates with PHP in order for the soapclient to ignore the self signed certificate and continue retrieving the wsdl.    try using:  $contextOptions = array(      'ssl' =&amp;gt; array(          'allow_self_signed' =&amp;gt; true,      )  );  as shown here: http://stackoverflow.com/questions/12373328/how-do-i-get-the-php-soap-client-to-communicate-with-a-service-running-over-ssl</description>
      <pubDate>Fri, 18 Mar 2016 20:08:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26415#M2301</guid>
      <dc:creator>Matthew_Hum1</dc:creator>
      <dc:date>2016-03-18T20:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: HowTo connect WebServices via SOAP/PHP5.6.x</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26416#M2302</link>
      <description>Hi again,&lt;BR /&gt;
I'm sorry but it doesn't work.&lt;BR /&gt;
I'm still run into the error "Parsing WSDL: Couldn't load from 'http .........failed to load external entity".&lt;BR /&gt;
&lt;BR /&gt;
$wsdl = "&lt;A href="https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl%22" target="_blank" rel="nofollow noreferrer noopener"&gt;https://xxx.xxx.xxx.xxx:8443/axis/services/NACWebService?wsdl"&lt;/A&gt;;&lt;BR /&gt;
$contextOptions = array(&lt;BR /&gt;
    'ssl' =&amp;gt; array(&lt;BR /&gt;
    'allow_self_signed' =&amp;gt; true,&lt;BR /&gt;
    ));&lt;BR /&gt;
$sslContext = stream_context_create($contextOptions);&lt;BR /&gt;
$soap = new SoapClient($wsdl, array(&lt;BR /&gt;
            'stream_context' =&amp;gt; $sslContext,&lt;BR /&gt;
            'login' =&amp;gt; "root",&lt;BR /&gt;
            'password' =&amp;gt; "password"));&lt;BR /&gt;
$response = $soap-&amp;gt;getNACVersion();&lt;BR /&gt;
print_r($response);&lt;BR /&gt;
&lt;BR /&gt;
When I use a local version from the "wsdl" file, I get the error only when the function is called&lt;BR /&gt;
$response = $soap-&amp;gt;getNACVersion(); &lt;BR /&gt;
I suspect that the credentials are submitted incorrectly or at the wrong place. &lt;BR /&gt;
Could it really be so difficult to get running this simple code ?&lt;BR /&gt;
I'm really frustrated.&lt;BR /&gt;
Regards&lt;BR /&gt;
Mike</description>
      <pubDate>Mon, 21 Mar 2016 17:56:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26416#M2302</guid>
      <dc:creator>Michael_Althoff</dc:creator>
      <dc:date>2016-03-21T17:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: HowTo connect WebServices via SOAP/PHP5.6.x</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26417#M2303</link>
      <description>I'm sorry, I usually don't use PHP and do my calls via PERL. I talked to a friend and he said in PHP he uses the curl calls as external calls and parses the XML by himself. There are multiple ways to skin a cat, but if you are insistent on using the soapclient, I would try to look up the documentation of soapclient and see what is required for that.&lt;BR /&gt;
&lt;BR /&gt;
The best way to troubleshoot this is to do a tcpdump and check the server response, whether or not the actual GET was sent or what HTTP status code was returned.</description>
      <pubDate>Thu, 24 Mar 2016 07:58:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26417#M2303</guid>
      <dc:creator>Matthew_Hum1</dc:creator>
      <dc:date>2016-03-24T07:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: HowTo connect WebServices via SOAP/PHP5.6.x</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26418#M2304</link>
      <description>According to this: &lt;A href="http://php.net/context.ssl" target="_blank" rel="nofollow noreferrer noopener"&gt;http://php.net/context.ssl&lt;/A&gt;&lt;BR /&gt;
you need to include a few other options. try this:&lt;BR /&gt;
&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;$context = stream_context_create(array(     'ssl' =&amp;gt; array(         'verify_peer' =&amp;gt; false,         'verify_peer_name' =&amp;gt; false,         'allow_self_signed' =&amp;gt; true     ) ));&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Mar 2016 20:46:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/howto-connect-webservices-via-soap-php5-6-x/m-p/26418#M2304</guid>
      <dc:creator>Matthew_Hum1</dc:creator>
      <dc:date>2016-03-24T20:46:00Z</dc:date>
    </item>
  </channel>
</rss>

