wsdl::addComplexType
adds an XML Schema complex type to the WSDL types
Signature
public function addComplexType(string
$name,
[string
$typeClass = 'complexType',
[string
$phpType = 'array',
[string
$compositor = '',
[string
$restrictionBase = '',
[array
$elements = ,
[array
$attrs = ,
[string
$arrayType = '']]]]]]] )
Parameters
$name
—
string
$typeClass
—
string
- (complexType|simpleType|attribute)
$phpType
—
string
- currently supported are array and struct (php assoc array)
$compositor
—
string
- (all|sequence|choice)
$restrictionBase
—
string
- namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
$elements
—
array
- e.g. array ( name => array(name=>'',type=>'') )
$attrs
—
array
- e.g. array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]'))
$arrayType
—
string
- as namespace:name (xsd:string)