This is what I have:
$server->wsdl->addComplexType('ResultObject',
'complexType',
'struct',
'all',
'',
array(
'Result' => array('name' => 'Result', 'type' => 'xsd:string'),
'Action' => array('name' => 'Action', 'type' => 'xsd:string')
)
);
And in register
nusoap function output param is as below:
array('ResultObject' => 'tns:ResultObject') // output parameters
The question I have is that result is now array of 3 elements NOT xsd:string
:
- Continue
- End
- AbortReason
Each one of the above has address
(xsd:anyURI), code
(xsd:int). How to implement this structure as a complexType?
EDIT:
Here you can see that Abort Reason has Reason
part type, and reason has its own structure.
The reason structure has code
, description
fields.
I want to implement this structure for the output with addComplexType