php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #28041 SOAP HTTP Digest Access Authentication
Submitted: 2004-04-17 20:04 UTC Modified: 2005-01-25 12:05 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:2 (50.0%)
From: david at cubbieco dot com Assigned: dmitry (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 5CVS-2004-04-17 (dev) OS: linux 2.6.3
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: david at cubbieco dot com
New email:
PHP Version: OS:

 

 [2004-04-17 20:04 UTC] david at cubbieco dot com
Description:
------------
PHP soap is wonderful and feature rich.  The application I am writing needs to be able to log into the SOAP server provided by Zap2it (labs.zap2it.com).  I found a post from dmitry that HTTP Digest Access Authentication was not yet implemented.

I appreciate all of the work.  I would like to be notified when this is implemented.

Reproduce code:
---------------
$login = "login";
$password = "password";

$client = new SoapClient('http://docs.tms.tribune.com/tech/tmsdatadirect/zap2it/xtvd.wsdl', array('trace'=>1, 'exceptions'=>0, 
	'login' => $login, 'password' => $password));
echo "<hr>";
$listings = $client->__call("download", array("startTime"=>"20040417 20:00:00 ", "endTime"=>"20040417 21:00:00"));

echo $listings;
echo "<br>Request:<br> ".htmlspecialchars($client->__getLastRequest()) ."<br>Response:<br>".htmlspecialchars($client->__getLastResponse())."\n";



Expected result:
----------------
$listings to contain a downloaded XML string

Actual result:
--------------
SoapFault exception: [SOAP-ENV:VersionMismatch] Wrong Version in /home/david/peevo/zap2it.php:12 Stack trace: #0 {main}
Request:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:TMSWebServices" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:download><startTime xsi:type="ns1:dateTime">20040417 20:00:00 </startTime><endTime xsi:type="ns1:dateTime">20040417 21:00:00</endTime></ns1:download></SOAP-ENV:Body></SOAP-ENV:Envelope>
Response:
<HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD><BODY><H1>401 Unauthorized</H1></BODY></HTML>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-18 01:00 UTC] derick@php.net
Assigning to dmitry then.
 [2005-01-25 12:05 UTC] dmitry@php.net
HTTP Digest Access Authentication is implemented in CVS (PHP_5_0 and HEAD). 

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Apr 01 03:01:29 2025 UTC