From:             david at cubbieco dot com
Operating system: linux 2.6.3
PHP version:      5CVS-2004-04-17 (dev)
PHP Bug Type:     Feature/Change Request
Bug description:  SOAP HTTP Digest Access Authentication

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>

-- 
Edit bug report at http://bugs.php.net/?id=28041&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28041&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28041&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28041&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28041&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28041&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28041&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28041&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28041&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28041&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28041&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28041&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28041&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28041&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28041&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28041&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28041&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28041&r=float

Reply via email to