string vatno = "BE0000000097";
MercatorController.xFunctions.xViesRet xViesRet = MercatorController.xFunctions.xNumTvaVies(vatno);
if (xViesRet == null)
{
    Dialogs.Stop(Api.LastError);
    return;
}

if (!xViesRet.Valid)
{
    Dialogs.Stop("Le n° de TVA n'existe PAS !");
}
else if (string.IsNullOrWhiteSpace(xViesRet.Name))
{
    Dialogs.Stop("Le n° de TVA existe mais aucun nom ne lui est associé !");
}
else
{
    Dialogs.Stop("Données trouvées sur CheckVatPort pour \r\n" + xViesRet.Name + "\r\n" + xViesRet.AddressFull);
}