Código PHP:
//Output parmeters GetSchedule
$this-> wsdl-> addComplexType('schedule','complexType','struct','all','',
array( 'MatchID' => array('name' => 'MatchID','type' => 'xsd:string'),
'StartTime' => array('name' => 'StartTime','type' => 'xsd:string'),
'KickOffTime' => array('name' => 'KickOffTime','type' => 'xsd:string'),
'HomeTeamID' => array('name' => 'HomeTeamID','type' => 'xsd:string'),
'AwayTeamID' => array('name' => 'AwayTeamID','type' => 'xsd:string')));
$this-> wsdl-> addComplexType('status','complexType','struct','all','',
array( 'ServerTime' => array('name' => 'ServerTime','type' => 'xsd:string'),
'ServerVersion' => array('name' => 'ServerVersion','type' => 'xsd:string'),
'StatusCode' => array('name' => 'StatusCode','type' => 'xsd:string'),
'StatusDescription' => array('name' => 'StatusDescription','type' => 'xsd:string')));
$this-> wsdl-> addComplexType('returnSchedule','complexType','struct','all','',
array( 'status' => array('name' => 'status','type' => 'tns:status'),
'schedule' => array[B]('maxOccurs'=>'unbounded'[/B],'minOccurs' => '1','name' => 'schedule','type' => 'tns:schedule' )));
$this-> register( "GetSchedule", // Method Name
array('stbp'=>'tns:stbpPanicReq'), //Input parameters
array('stbp'=>'tns:returnSchedule'), //Output parameteres
//'urn:reqPanicwsdl', //Namespace
false,
'urn:GetSchedule#GetSchedule', //Soap action
'rpc', //Style
'literal' //Use
);