php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33716 HTTP authentication
Submitted: 2005-07-15 22:38 UTC Modified: 2005-07-24 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: jacka at torreycommerce dot com Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.0.4 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jacka at torreycommerce dot com
New email:
PHP Version: OS:

 

 [2005-07-15 22:38 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-16 22:17 UTC] tony2001@php.net
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


 [2005-07-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 14:01:30 2024 UTC