note 106230 added to soapclient.soapclient

From: Date: Wed, 19 Oct 2011 23:54:38 +0000
Subject: note 106230 added to soapclient.soapclient
Groups: php.notes 
Request: Send a blank email to php-notes+get-184011@lists.php.net to get a copy of this message
When using client certificates to secure a SOAP service (local_cert option), successive/multiple calls (to Apache at least) may throw a SoapFault: Forbidden and on the server side (actual error in Apache error logs): "access to ... failed, reason: SSL requirement expression not fulfilled (see SSL logfile for more details)" The workaround is to create a simple ssl stream_context with the local_cert option and use that with SoapClient: <?php $ctx = stream_context_create( array( 'ssl' => array( 'local_cert' => $cert_file ) ) ); $options = array( 'stream_context' => $ctx ); $client = new SoapClient($wsdl, $options); ?> This is likely a bug in PHP SoapClient - using PHP 5.3.1. ---- Server IP: 64.71.164.2 Probable Submitter: 64.202.160.161 ---- Manual Page -- http://www.php.net/manual/en/soapclient.soapclient.php Edit -- https://master.php.net/note/edit/106230 Del: integrated -- https://master.php.net/note/delete/106230/integrated Del: useless -- https://master.php.net/note/delete/106230/useless Del: bad code -- https://master.php.net/note/delete/106230/bad+code Del: spam -- https://master.php.net/note/delete/106230/spam Del: non-english -- https://master.php.net/note/delete/106230/non-english Del: in docs -- https://master.php.net/note/delete/106230/in+docs Del: other reasons-- https://master.php.net/note/delete/106230 Reject -- https://master.php.net/note/reject/106230 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184011) next »