예제 #1
0
        private CustomXmlResponse Response(CustomXmlMessage aXmlMessage, CreateInstanceCustomXmlResponse aCreateInstance)
        {
            CustomXmlResponse xmlResponse = null;

            do
            {
                xmlResponse = ClassFactory.Tcp.GetResponse(aXmlMessage, aCreateInstance);
            }while (ProcessedResponse(aXmlMessage, xmlResponse));

            return(xmlResponse);
        }
예제 #2
0
        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));
            }
        }
예제 #3
0
        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));
            }
        }