public static XmlDocument CallService(XmlDocument Request) { XmlDocument xm = new XmlDocument(); COPXmlFactory.Code1AddressCheck.c1match xo; try { string InnerXML = Request.InnerXml; xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.Code1AddressCheck.c1match>(InnerXML); xo = __Call(xo); } catch (Exception ex) { xo = RevenueGovXMLFactory.GetCode1AddressCheck(); xo.Message = ex.Message; } return(RevenueGovXMLFactory.GetXmlDocument(xo)); }