public static XmlDocument CriaRequestWs(this MDFeConsStatServMDFe consStatServMdFe) { var request = new XmlDocument(); request.LoadXml(consStatServMdFe.XmlString()); return(request); }
public static void ValidarSchema(this MDFeConsStatServMDFe consStatServMDFe) { var xmlValidacao = consStatServMDFe.XmlString(); switch (MDFeConfiguracao.VersaoWebService.VersaoLayout) { case VersaoServico.Versao100: Validador.Valida(xmlValidacao, "consStatServMDFe_v1.00.xsd"); break; case VersaoServico.Versao300: Validador.Valida(xmlValidacao, "consStatServMDFe_v3.00.xsd"); break; } }
public static void ValidarSchema(this MDFeConsStatServMDFe consStatServMDFe) { var xmlValidacao = consStatServMDFe.XmlString(); Validador.Valida(xmlValidacao, "consStatServMDFe_v1.00.xsd"); }