note 116724 added to class.soapclient
| From: | romuloum at hotmail dot com | Date: | Thu, 19 Feb 2015 16:22:28 +0000 |
| Subject: | note 116724 added to class.soapclient | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201745@lists.php.net to get a copy of this message | ||
After migrating to PHP 5.6.5, the soap 1.2 did not work anymore. So I solved the problem by adding
optional parameters SSL.
My error: failed to load external entity
How to solve:
// options for ssl in php 5.6.5
$opts = array(
'ssl' => array('ciphers'=>'RC4-SHA',
'verify_peer'=>false, 'verify_peer_name'=>false)
);
// SOAP 1.2 client
$params = array ('encoding' => 'UTF-8', 'verifypeer' => false,
'verifyhost' => false, 'soap_version' => SOAP_1_2, 'trace' =>
1, 'exceptions' => 1, "connection_timeout" => 180,
'stream_context' => stream_context_create($opts) );
$oSoapClient = new SoapClient ( $url . "?WSDL", $params );
----
Server IP: 72.52.91.14
Probable Submitter: 187.106.37.158
----
Manual Page -- http://php.net/manual/en/class.soapclient.php
Edit -- https://master.php.net/note/edit/116724
Del: integrated -- https://master.php.net/note/delete/116724/integrated
Del: useless -- https://master.php.net/note/delete/116724/useless
Del: bad code -- https://master.php.net/note/delete/116724/bad+code
Del: spam -- https://master.php.net/note/delete/116724/spam
Del: non-english -- https://master.php.net/note/delete/116724/non-english
Del: in docs -- https://master.php.net/note/delete/116724/in+docs
Del: other reasons-- https://master.php.net/note/delete/116724
Reject -- https://master.php.net/note/reject/116724
Search -- https://master.php.net/manage/user-notes.php