PageRenderTime 49ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/soap/tests/bugs/bug38536.php

http://github.com/facebook/hiphop-php
PHP | 36 lines | 35 code | 1 blank | 0 comment | 0 complexity | 99a758c2e2d9082fed3660b55c42b755 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. <?hh
  2. class LocalSoapClient extends SoapClient {
  3. function __doRequest($request, $location, $action, $version, $one_way = 0) {
  4. return <<<EOF
  5. <?xml version="1.0" encoding="UTF-8"?>
  6. <SOAP-ENV:Envelope
  7. SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  8. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  9. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  10. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  11. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xmlns:ns1="http://www.grupos.com.br/ws/enturma/client">
  13. <SOAP-ENV:Body>
  14. <getClientInfoFromDomainResponse SOAP-ENC:root="1">
  15. <xsd:Result xsi:type="ns1:ClientType">
  16. <id xsi:type="xsd:int">2</id>
  17. <address href="#i2"/>
  18. </xsd:Result>
  19. </getClientInfoFromDomainResponse>
  20. <xsd:address id="i2" xsi:type="ns1:ClientAddressType" SOAP-ENC:root="0">
  21. <idClient xsi:type="xsd:long">2</idClient>
  22. <address href="#i3"/>
  23. </xsd:address>
  24. <address xsi:type="xsd:string" id="i3" SOAP-ENC:root="0">Test</address>
  25. </SOAP-ENV:Body>
  26. </SOAP-ENV:Envelope>
  27. EOF;
  28. }
  29. }
  30. <<__EntryPoint>>
  31. function main_entry(): void {
  32. ini_set("soap.wsdl_cache_enabled", 0);
  33. $SOAPObject = new LocalSoapClient(dirname(__FILE__).'/bug38536.wsdl');
  34. print_r($SOAPObject->__soapcall('test', varray[]));
  35. }