Source for file params_classes.php
Documentation is available at params_classes.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Shane Caraveo <Shane@Caraveo.com> |
// +----------------------------------------------------------------------+
// $Id: params_classes.php,v 1.8 2007/01/21 16:15:00 yunosh Exp $
require_once 'SOAP/Value.php';
function SOAPStruct ($s=NULL , $i=NULL , $f=NULL ) {
function __to_soap ($name = 'inputStruct', $header=false , $mustUnderstand=0 , $actor= 'http://schemas.xmlsoap.org/soap/actor/next')
$inner[] = new SOAP_Value ('varString','string',$this->varString);
$inner[] = new SOAP_Value ('varInt','int',$this->varInt);
$inner[] = new SOAP_Value ('varFloat','float',$this->varFloat);
return new SOAP_Header ($name,'{http://soapinterop.org/xsd}SOAPStruct',$inner,$mustUnderstand,$actor);
return new SOAP_Value ($name,'{http://soapinterop.org/xsd}SOAPStruct',$inner);
function SOAPStructStruct ($s=NULL , $i=NULL , $f=NULL , $ss=NULL ) {
// XXX unfortunately, a copy of $ss will occure here
// ze2 can fix this I think
function __to_soap ($name = 'inputStruct')
$v[] = new SOAP_Value ('varString','string',$this->varString);
$v[] = new SOAP_Value ('varInt','int',$this->varInt);
$v[] = new SOAP_Value ('varFloat','float',$this->varFloat);
$v[] = $this->varStruct->__to_soap ('varStruct');
return new SOAP_Value ($name,'{http://soapinterop.org/xsd}SOAPStructStruct',$v);
function SOAPArrayStruct ($s=NULL , $i=NULL , $f=NULL , $ss=NULL ) {
// XXX unfortunately, a copy of $ss will occure here
// ze2 can fix this I think
function __to_soap ($name = 'inputStruct')
$c = count($this->varArray);
for ($i=0; $i< $c; $i++ ) {
$ar[] = new SOAP_Value ('item','string',$this->varArray[$i]);
$v[] = new SOAP_Value ('varString','string',$this->varString);
$v[] = new SOAP_Value ('varInt','int',$this->varInt);
$v[] = new SOAP_Value ('varFloat','float',$this->varFloat);
$v[] = new SOAP_Value ('varArray',false ,$ar);
return new SOAP_Value ($name,'{http://soapinterop.org/xsd}SOAPArrayStruct',$v);
function Person ($a=NULL , $i=NULL , $n=NULL , $m=NULL ) {
function __set_attribute ($key, $value)
function __to_soap ($name = 'x_Person',$ns = 'http://soapinterop.org/xsd', $compound2=false )
$v[] = new SOAP_Value (" \{$ns}Age" ,'double',$this->Age);
$v[] = new SOAP_Value (" \{$ns}ID" ,'float',$this->ID);
return new SOAP_Value (" \{$ns}$name" ,'Person',
$v,array ('Name'=> $this->Name,'Male'=> $this->Male));
$v[] = new SOAP_Value (" \{$ns}Name" ,'string',$this->Name);
$v[] = new SOAP_Value (" \{$ns}Male" ,'boolean',$this->Male);
return new SOAP_Value (" \{$ns}$name" ,'Person',$v);
class x_Person extends Person {
function x_Person ($a=NULL , $i=NULL , $n=NULL , $m=NULL ) {
$parent->Person ($a,$i,$n,$m);
var $person; // class person2
function Employee ($person=NULL ,$id=NULL ,$salary=NULL ) {
function __to_soap ($name = 'x_Employee', $ns= 'http://soapinterop.org/employee')
$person = $this->person->__to_soap ('person','http://soapinterop.org/person',true );
$person->namespace = $ns;
$va[] = new SOAP_Value (" \{$ns}salary" ,'double',$this->salary);
$va[] = new SOAP_Value (" \{$ns}ID" ,'int',$this->ID);
return new SOAP_Value (" \{$ns}$name" ,'Employee',$va);
class x_Employee extends Employee {
function x_Employee ($person=NULL ,$id=NULL ,$salary=NULL ) {
$parent->Employee ($person,$id,$salary);
Documentation generated on Mon, 11 Mar 2019 15:06:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|