I used your wsdl file as r.wsdl, so the code was
ReceiverService.php
PHP Code:
<?php
if (!class_exists("CFCInvocationException")) {
class CFCInvocationException {
}}
if (!class_exists("ReceiverService")) {
class ReceiverService extends SoapClient {
private static $classmap = array(
"CFCInvocationException" => "CFCInvocationException",
);
public function __construct($wsdl="r.wsdl", $options=array()) {
foreach(self::$classmap as $wsdlClassName => $phpClassName) {
if(!isset($options['classmap'][$wsdlClassName])) {
$options['classmap'][$wsdlClassName] = $phpClassName;
}
}
parent::__construct($wsdl, $options);
}
public function _checkArguments($arguments, $validParameters) {
$variables = "";
foreach ($arguments as $arg) {
$type = gettype($arg);
if ($type == "object") {
$type = get_class($arg);
}
$variables .= "(".$type.")";
}
if (!in_array($variables, $validParameters)) {
throw new Exception("Invalid parameter types: ".str_replace(")(", ", ", $variables));
}
return true;
}
public function incomingRequest($mixed = null) {
$validParameters = array(
"(string)(string)(string)",
);
$args = func_get_args();
$this->_checkArguments($args, $validParameters);
return $this->__soapCall("incomingRequest", $args);
}
}}
?>
Bookmarks