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:
Normann Lou 2009-02-18 02:20:01 +00:00 committed by Sam Minnee
parent d4a1087cb8
commit 2b972c45e7

View File

@ -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();
} }
} }
?> ?>