$this->floatMessage = $f; $this->shortMessage = $s; } } class ExtendedStruct extends BaseStruct { function __construct($f, $s, $x1, $x2, $x3) { parent::__construct($f, $s); $this->stringMessage = $x1; $this->intMessage = $x2; $this->anotherIntMessage = $x3; } } class MoreExtendedStruct extends ExtendedStruct { function __construct($f, $s, $x1, $x2, $x3, $b) { parent::__construct($f, $s, $x1, $x2, $x3); $this->booleanMessage = $b; } } $s1 = new BaseStruct(12.345, 1); $s2 = new ExtendedStruct(12.345, 2, "arg", -3, 5); $s3 = new MoreExtendedStruct(12.345, 3, "arg", -3, 5, true); $client = new SoapClient(dirname(__FILE__) . "/round4_groupH_complex_rpcenc.wsdl", array("trace" => 1, "exceptions" => 0)); $client->echoMultipleFaults2(2, $s1, $s2, $s3); echo $client->__getlastrequest(); $HTTP_RAW_POST_DATA = $client->__getlastrequest(); include "round4_groupH_complex_rpcenc.inc"; echo "ok\n";
<?php $client = new SoapClient(dirname(__FILE__) . "/round4_groupH_simple_rpcenc.wsdl", array("trace" => 1, "exceptions" => 0)); $client->echoMultipleFaults2(2, "Hello World", 12.345, array("one", "two", "three")); echo $client->__getlastrequest(); $HTTP_RAW_POST_DATA = $client->__getlastrequest(); include "round4_groupH_simple_rpcenc.inc"; echo "ok\n";
<?php $client = new SoapClient(dirname(__FILE__) . "/round4_groupH_simple_doclit.wsdl", array("trace" => 1, "exceptions" => 0)); $client->echoMultipleFaults2(array("whichFault" => 2, "param1" => "Hello world", "param2" => 12.345, "param3" => array("one", "two", "three"))); echo $client->__getlastrequest(); $HTTP_RAW_POST_DATA = $client->__getlastrequest(); include "round4_groupH_simple_doclit.inc"; echo "ok\n";
$this->structMessage = $f; $this->shortMessage = $s; } } class ExtendedStruct extends BaseStruct { function __construct($f, $s, $x1, $x2, $x3) { parent::__construct($f, $s); $this->stringMessage = $x1; $this->intMessage = $x2; $this->anotherIntMessage = $x3; } } class MoreExtendedStruct extends ExtendedStruct { function __construct($f, $s, $x1, $x2, $x3, $b) { parent::__construct($f, $s, $x1, $x2, $x3); $this->booleanMessage = $b; } } $s1 = new BaseStruct(new SOAPStruct("s1", 1, 1.1), 1); $s2 = new ExtendedStruct(new SOAPStruct("s2", 2, 2.2), 2, "arg", -3, 5); $s3 = new MoreExtendedStruct(new SOAPStruct("s3", 3, 3.3), 3, "arg", -3, 5, true); $client = new SoapClient(dirname(__FILE__) . "/round4_groupH_complex_doclit.wsdl", array("trace" => 1, "exceptions" => 0)); $client->echoMultipleFaults2(array("whichFault" => 1, "param1" => $s1, "param2" => $s2, "param3" => $s3)); echo $client->__getlastrequest(); $HTTP_RAW_POST_DATA = $client->__getlastrequest(); include "round4_groupH_complex_doclit.inc"; echo "ok\n";