function decodeSoapval($soapval)
{
if (gettype($soapval) == "object" &&
- (strcasecmp(get_class($soapval),"soapparam") == 0 ||
- strcasecmp(get_class($soapval),"soapvar") == 0)) {
- if (strcasecmp(get_class($soapval),"soapparam") == 0)
+ (strcasecmp(get_class($soapval),"SoapParam") == 0 ||
+ strcasecmp(get_class($soapval),"SoapVar") == 0)) {
+ if (strcasecmp(get_class($soapval),"SoapParam") == 0)
$val = $soapval->param_data->enc_value;
else
$val = $soapval->enc_value;
if (is_array($val)) {
foreach($val as $k => $v) {
if (gettype($v) == "object" &&
- (strcasecmp(get_class($soapval),"soapparam") == 0 ||
- strcasecmp(get_class($soapval),"soapvar") == 0)) {
+ (strcasecmp(get_class($soapval),"SoapParam") == 0 ||
+ strcasecmp(get_class($soapval),"SoapVar") == 0)) {
$val[$k] = $this->decodeSoapval($v);
}
}
if ($params) {
$v = array_values($params);
if (gettype($v[0]) == 'object' &&
- (get_class($v[0]) == 'soapvar' || get_class($v[0]) == 'soapparam'))
+ (get_class($v[0]) == 'SoapVar' || get_class($v[0]) == 'SoapParam'))
$this->type = 'soapval';
}
}
}
function soap_value($name, $value, $type, $type_name=NULL, $type_ns=NULL) {
- return new soapparam(new soapvar($value,$type,$type_name,$type_ns),$name);
+ return new SoapParam(new SoapVar($value,$type,$type_name,$type_ns),$name);
}
class SOAPStruct {
$soap_tests['base'][] = new SOAP_Test('echoIntegerArray',
array('inputIntegerArray' =>
soap_value('inputIntegerArray',
- array(new soapvar(12345,XSD_INT),new soapvar(654321,XSD_INT)),
+ array(new SoapVar(12345,XSD_INT),new SoapVar(654321,XSD_INT)),
SOAP_ENC_ARRAY,"ArrayOfint","http://soapinterop.org/xsd")));
//***********************************************************
$soap_tests['base'][] = new SOAP_Test('echoFloatArray',
array('inputFloatArray' =>
soap_value('inputFloatArray',
- array(new soapvar(123.45,XSD_FLOAT),new soapvar(654.321,XSD_FLOAT)),
+ array(new SoapVar(123.45,XSD_FLOAT),new SoapVar(654.321,XSD_FLOAT)),
SOAP_ENC_ARRAY,"ArrayOffloat","http://soapinterop.org/xsd")));
//***********************************************************
// Base echoStruct
$soapstruct,$soapstruct,$soapstruct)));
$soap_tests['base'][] = new SOAP_Test('echoStructArray', array('inputStructArray' =>
soap_value('inputStructArray',array(
- new soapvar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"),
- new soapvar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"),
- new soapvar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd")),
+ new SoapVar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"),
+ new SoapVar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"),
+ new SoapVar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd")),
SOAP_ENC_ARRAY,"ArrayOfSOAPStruct","http://soapinterop.org/xsd")));