xref: /PHP-5.6/ext/soap/tests/bugs/bug37278.phpt (revision 610c7fbe)
1--TEST--
2Bug #37278 (SOAP not respecting uri in __soapCall)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7$options = array(
8  "location" => "test://",
9  "uri"      => "http://bricolage.sourceforge.net/Bric/SOAP/Auth",
10  "trace"    => 1);
11
12$client = new SoapClient(null, $options);
13
14$newNS = "http://bricolage.sourceforge.net/Bric/SOAP/Story";
15
16try {
17  $client->__soapCall("list_ids", array(), array("uri" => $newNS));
18} catch (Exception $e) {
19  print $client->__getLastRequest();
20}
21?>
22--EXPECT--
23<?xml version="1.0" encoding="UTF-8"?>
24<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>
25