bug37278.phpt 901 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #37278 (SOAP not respecting uri in __soapCall)
  3. --EXTENSIONS--
  4. soap
  5. --FILE--
  6. <?php
  7. $options = array(
  8. "location" => "test://",
  9. "uri" => "http://bricolage.sourceforge.net/Bric/SOAP/Auth",
  10. "trace" => 1);
  11. $client = new SoapClient(null, $options);
  12. $newNS = "http://bricolage.sourceforge.net/Bric/SOAP/Story";
  13. try {
  14. $client->__soapCall("list_ids", array(), array("uri" => $newNS));
  15. } catch (Exception $e) {
  16. print $client->__getLastRequest();
  17. }
  18. ?>
  19. --EXPECT--
  20. <?xml version="1.0" encoding="UTF-8"?>
  21. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://bricolage.sourceforge.net/Bric/SOAP/Story" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:list_ids/></SOAP-ENV:Body></SOAP-ENV:Envelope>