Hi I am trying to use http://ec.europa.eu/taxation_customs/vies/vieshome.do?selectedLanguage=EN in c# to check if it's ok
[ClassInterface(ClassInterfaceType.AutoDual)]
[ProgId("DotNetCOM.VerificareCIF")]
public class VerificareCIF
{
public string tara = "RO";
public bool valid = false;
public DateTime data;
public String firma = String.Empty;
public String adresa = String.Empty;
public bool VerifCIF(string CIF)
{
eu.europa.ec.checkVatService service = new eu.europa.ec.checkVatService();
data = service.checkVat(ref tara, ref CIF, out valid, out firma, out adresa);
return valid;
}
}
it crashes when i add the web reference
Please help!