mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT: merge changeset 69512.
MINOR: add a testfunction() to CRMSoapServerTester git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@71975 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d4a1087cb8
commit
2b972c45e7
@ -54,10 +54,16 @@ class SapphireSoapServer extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function index() {
|
function index() {
|
||||||
$s = new SoapServer($this->getWSDLURL());
|
$wsdl = $this->getViewer('wsdl')->process($this);
|
||||||
$s->setClass($this->class);
|
$wsdlFile = TEMP_FOLDER . '/sapphire-wsdl-' . $this->class;
|
||||||
$s->handle();
|
$fh = fopen($wsdlFile, 'w');
|
||||||
|
fwrite($fh, $wsdl);
|
||||||
|
fclose($fh);
|
||||||
|
|
||||||
|
$s = new SoapServer($wsdlFile);
|
||||||
|
$s->setClass($this->class);
|
||||||
|
$s->handle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user