note 60004 added to function.soap-soapclient-construct
| From: | php at sowen dot de | Date: | Thu, 22 Dec 2005 14:40:42 +0000 |
| Subject: | note 60004 added to function.soap-soapclient-construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100583@lists.php.net to get a copy of this message | ||
If you're using CLI and there are multiple IP addresses available for outgoing SOAP-requests,
try this "secret" to set outgoing IP:
e.g. for local IP 10.1.4.71:
$opts = array('socket' => array('bindto' => '10.1.4.71:0'));
$context = stream_context_create($opts);
$client = new SoapClient(null, array('location'=>'http://...','uri' =>
'...','stream_context' => $context));
You can also set other options for the stream context, please refer to this page:
Appendix M: http://www.php.net/manual/en/wrappers.php
Bye,
Nils Sowen
----
Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-construct.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60004
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60004&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60004&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60004&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60004&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60004&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60004&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60004&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60004&report=yes
Search -- http://master.php.net/manage/user-notes.php