$client = new SoapClient( $wsdl );
try {
$request = $client->getOperationHistory( array( "OperationHistoryRequest" => array( "Barcode" => ?, "MessageType" => 0, "Language" => "RUS" ), "AuthorizationHeader" => array( "login" => $login, "password" => $pass ) ) );
} catch ( Exception $e ) {
return json_encode( array( "result" => false, "reason" => $e->getMessage() ) );
}
$arr = json_decode( json_encode( $request ), true );