Multiple arrays in nusoap output

446 views Asked by At

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. enter image description here

The reason structure has code, description fields. enter image description here

I want to implement this structure for the output with addComplexType

0

There are 0 answers