PageRenderTime 54ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/soap/tests/bugs/bug44882.php

http://github.com/facebook/hiphop-php
PHP | 36 lines | 35 code | 1 blank | 0 comment | 0 complexity | 1634a0b2ccce7fc3ec90bdcaed6253a6 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?php
  2. class TestSoapClient extends SoapClient
  3. {
  4. public function __doRequest($req, $loc, $act, $ver, $one_way = 0)
  5. {
  6. return <<<XML
  7. <?xml version="1.0" encoding="UTF-8"?>
  8. <SOAP-ENV:Envelope
  9. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  10. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xmlns:ns="urn:ebay:api:PayPalAPI">
  12. <SOAP-ENV:Body id="_0">
  13. <GetExpressCheckoutDetailsResponse xmlns="urn:ebay:api:PayPalAPI">
  14. <Timestamp>2008-06-23T14:51:08Z</Timestamp>
  15. <Ack>Success</Ack>
  16. <CorrelationID>ae013a0ccdf13</CorrelationID>
  17. <Version>50.000000</Version>
  18. <Build>588340</Build>
  19. <GetExpressCheckoutDetailsResponseDetails xsi:type="ns:GetExpressCheckoutDetailsResponseDetailsType">
  20. <Token>EC-11Y75137T2399952C</Token>
  21. <PayerInfo>
  22. <Payer>example@example.com</Payer>
  23. <PayerID>MU82WA43YXM9C</PayerID>
  24. <PayerStatus>verified</PayerStatus>
  25. </PayerInfo>
  26. </GetExpressCheckoutDetailsResponseDetails>
  27. </GetExpressCheckoutDetailsResponse>
  28. </SOAP-ENV:Body>
  29. </SOAP-ENV:Envelope>
  30. XML;
  31. }
  32. }
  33. $client = new TestSoapClient(dirname(__FILE__).'/bug44882.wsdl');
  34. print_r($client->GetExpressCheckoutDetails());
  35. ?>