ID: 28041
Updated by: [EMAIL PROTECTED]
Reported By: david at cubbieco dot com
-Status: Open
+Status: Assigned
Bug Type: Feature/Change Request
Operating System: linux 2.6.3
PHP Version: 5CVS-2004-04-17 (dev)
-Assigned To:
+Assigned To: dmitry
New Comment:
Assigning to dmitry then.
Previous Comments:
------------------------------------------------------------------------
[2004-04-17 20:04:25] 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>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28041&edit=1