If you get this error:
Fatal error: Cannot use object of type stdClass as array
when trying to read the result as an array, use this function.
function objectToArray( $object )
{
    if( !is_object( $object ) && !is_array( $object ) )
    {
        return $object;
    }
    if( is_object( $object ) )
    {
        $object = get_object_vars( $object );
    }
    return array_map( ‘objectToArray’, $object );
}
this will convert the object returned by soap api to an array.