#33716 [Opn->Fbk]: HTTP authentication
| From: | tony2001@php.net | Date: | Sat, 16 Jul 2005 20:17:52 +0000 |
| Subject: | #33716 [Opn->Fbk]: HTTP authentication | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81953@lists.php.net to get a copy of this message | ||
ID: 33716
Updated by: tony2001@php.net
Reported By: jacka at torreycommerce dot com
-Status: Open
+Status: Feedback
Bug Type: SOAP related
Operating System: linux
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-07-15 22:38:29] jacka at torreycommerce dot com
Description:
------------
It appears that the constructor of SoapClient is completely ignoring
the second argument (options). I am trying to use basic http
authentication, but regardless of what I send as the options parameter
I get the same result.
Reproduce code:
---------------
$woptions['soap_version']=SOAP_1_2;
$woptions['login']="";
$woptions['password']="";
$client = new
SoapClient("http://wsdl_that_uses_basic_HTTP_auth",$woptions);
Expected result:
----------------
It should return no errors or warnings.
Actual result:
--------------
PHP Warning:
SoapClient::__construct(http://wsdl_that_uses_basic_HTTP_auth): failed
to open stream: HTTP request failed! HTTP/1.1 401 Authorization
Required
in /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php on line
8
PHP Warning: I/O warning : failed to load HTTP resource in
/var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php on line 8
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://merchant-api-qa.amazon.com/gateway/merchant-interface-mime'
in
/var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php on line 8
PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR:
Parsing WSDL: Couldn't load from
'http://wsdl_that_uses_basic_HTTP_auth'
in
/var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php:8
Stack trace:
#0 /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php(8):
SoapClient->__construct('http://wsdl_that_uses_basic_HTTP_auth',
Array)
#1 {main}
thrown in /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php
on line 8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33716&edit=1