Te pongo un ejemplo de como consumo yo un servicio y ya te quedas tú con lo que te haga falta:
Código PHP:
public function setState( $state )
{
//Fill the args
$args = array('stbp'=>array('request'=>array('clientAuth'=>$this->clientAuth,'reqSetState'=>array( 'videoState'=>$state ))));
//perform the function call without parameters:
$answer = $this->call('reqSetState', $args );
//check if there were any call errors, and if so stop execution with some error messages:
$error = $this->getError();
if ($error)
{
$this->logs[] = $this->response;
if ( isset ( $GLOBALS["log"] ) ) $GLOBALS["log"]->append( "stbClientClass->setState(), an error has occured. ". $this->getError() ,"error");
$this->logs[] = $this->getDebug();
if ( isset ( $GLOBALS["log"] ) )
{
$errors_array = $this->getDebug();
$GLOBALS["log"]->append( "stbClientClass->setState() ".$this->getDebug(),"debug");
}
print_r( $this->getDebug() );
return ( array() );
}
//output the response (in the form of a multidimensional array) from the function call:
return $answer;
}