private CustomXmlResponse Response(CustomXmlMessage aXmlMessage, CreateInstanceCustomXmlResponse aCreateInstance) { CustomXmlResponse xmlResponse = null; do { xmlResponse = ClassFactory.Tcp.GetResponse(aXmlMessage, aCreateInstance); }while (ProcessedResponse(aXmlMessage, xmlResponse)); return(xmlResponse); }
public CustomXmlResponse GetResponse(CustomXmlMessage aXmlMessage, CreateInstanceCustomXmlResponse aCreateInstance) { String StrXMLResponse = RequestServer(aXmlMessage.Xml); try { CustomXmlResponse response = aCreateInstance(StrXMLResponse); return response; } catch (XmlException) { throw new EDataCommunication(String.Format(DataCommunicationStrings.ErrorXMLResponse, aCreateInstance.Method.Name)); } }
public CustomXmlResponse GetResponse(CustomXmlMessage aXmlMessage, CreateInstanceCustomXmlResponse aCreateInstance) { String StrXMLResponse = RequestServer(aXmlMessage.Xml); try { CustomXmlResponse response = aCreateInstance(StrXMLResponse); return(response); } catch (XmlException) { throw new EDataCommunication(String.Format(DataCommunicationStrings.ErrorXMLResponse, aCreateInstance.Method.Name)); } }