2
Bug #31695 Cannot redefine endpoint when using WSDL
4
<?php require_once('skipif.inc'); ?>
7
ini_set("soap.wsdl_cache_enabled", 0);
13
class LocalSoapClient extends SoapClient {
14
function __construct($wsdl, $options=array()) {
15
parent::__construct($wsdl, $options);
16
$this->server = new SoapServer($wsdl, $options);
17
$this->server->addFunction("Test");
20
function __doRequest($request, $location, $action, $version) {
23
$this->server->handle($request);
24
$response = ob_get_contents();
30
$client = new LocalSoapClient(dirname(__FILE__)."/bug31695.wsdl");
32
$client = new LocalSoapClient(dirname(__FILE__)."/bug31695.wsdl", array("location"=>"test://1"));
34
$client->__soapCall("Test",
36
array("location"=>"test://2"));
37
$old = $client->__setLocation("test://3");
41
$client->__setLocation($old);
43
$old = $client->__setLocation();
45
$client->__setLocation($old);
47
$client->__setLocation(null);
49
var_dump($client->__setLocation());