|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-18 01:00 UTC] derick@php.net
[2005-01-25 12:05 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
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>