Re: ext/soap handing of header params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mar 19, 2005, at 3:10 AM, Dmitry Stogov wrote:

Hi,

I really wasn't subscribed. :)

1. I take only a very short look into the patch, but didn't understand that
it does.
I will make more careful look on next week.
Your explanations and PHP examples (tests) would be very useful.



For a PHP example of what happens, run this with and without my patch and look at the request that's sent (it won't succeed because you're missing data, but you can inspect the request). Without the patch it's incorrect (doesn't match what the SOAP standard says it should.) With the patch it's formatted correctly.


<?php

$soap = new SoapClient('http://webservices.sabre.com/wsdl/sabreXML1.0.00/res/ SessionCreateRQ.wsdl',
array('trace' => 1, 'soap_version' => SOAP_1_2));
print_r($soap->__getFunctions());


$eb = new EbXmlMessage();
$sec = new Security();
$scrq = new SessionCreateRQ();

try {
  $soap->SessionCreateRQ($eb, $sec, $scrq);
} catch (Exception $e) {
  var_dump($soap->__getLastRequest());
}

class EbXmlMessage {
public $From = array('PartyId' => 'omniti.com');
public $To = array('PartyId' => 'webservices.sabre.com');
public $CPAId = 'IPCC';
public $ConversationId = 'abc123@omniti.com';
public $Service = 'OTA_AirAvail';
public $Action = 'OTA_AirAvailLLSRQ';
public $MessageData = array('MessageId' => 'mid:123456@omnti.com', 'Timestamp' => '2005-03-18T05:15:00Z');
}


class Security {

}

class SessionCreateRQ {
    public $POS = '21797';
}

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux