note 103305 added to soapclient.soapclient
| From: | simonlang at gmx dot ch | Date: | Wed, 06 Apr 2011 13:35:28 +0000 |
| Subject: | note 103305 added to soapclient.soapclient | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178551@lists.php.net to get a copy of this message | ||
Example for a soap client with HTTP authentication over a proxy:
<?php
new SoapClient(
'service.wsdl',
array(
// Stuff for development.
'trace' => 1,
'exceptions' => true,
'cache_wsdl' => WSDL_CACHE_NONE,
'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
// Auth credentials for the SOAP request.
'login' => 'username',
'password' => 'password',
// Proxy url.
'proxy_host' => '10.110.1.114', // Do not add the schema here (http or
https). It won't work.
'proxy_port' => 44300,
// Auth credentials for the proxy.
'proxy_login' => NULL,
'proxy_password' => NULL,
)
);
?>
Providing an URL to a WSDL file on the remote server (which as well is protected with HTTP
authentication) didn't work. I downloaded the WSDL and stored it on the local server.
----
Server IP: 69.147.83.197
Probable Submitter: 77.58.252.182
----
Manual Page -- http://www.php.net/manual/en/soapclient.soapclient.php
Edit -- https://master.php.net/note/edit/103305
Del: integrated -- https://master.php.net/note/delete/103305/integrated
Del: useless -- https://master.php.net/note/delete/103305/useless
Del: bad code -- https://master.php.net/note/delete/103305/bad+code
Del: spam -- https://master.php.net/note/delete/103305/spam
Del: non-english -- https://master.php.net/note/delete/103305/non-english
Del: in docs -- https://master.php.net/note/delete/103305/in+docs
Del: other reasons-- https://master.php.net/note/delete/103305
Reject -- https://master.php.net/note/reject/103305
Search -- https://master.php.net/manage/user-notes.php