nusoap_xmlschema::addComplexType
adds a complex type to the schema
example: array addType( 'ArrayOfstring', 'complexType', 'array', '', 'SOAP-ENC:Array', array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'string[]'), 'xsd:string' ); example: PHP associative array ( SOAP Struct ) addType( 'SOAPStruct', 'complexType', 'struct', 'all', array('myVar'=> array('name'=>'myVar','type'=>'string') );
Signature
public function addComplexType(
$name,
[string
$typeClass = 'complexType',
[string
$phpType = 'array',
[string
$compositor = '',
[string
$restrictionBase = '',
[array
$elements = ,
[array
$attrs = ,
[string
$arrayType = '']]]]]]] )
Parameters
$name
—$typeClass
— string$phpType
— string$compositor
— string$restrictionBase
— string$elements
— array$attrs
— array$arrayType
— string