/// <remarks/>
 public void GET_ORDERS_BY_CONTACTAsync(InputParameters InputParameters, object userState) {
     if ((this.GET_ORDERS_BY_CONTACTOperationCompleted == null)) {
         this.GET_ORDERS_BY_CONTACTOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGET_ORDERS_BY_CONTACTOperationCompleted);
     }
     this.InvokeAsync("GET_ORDERS_BY_CONTACT", new object[] {
                 InputParameters}, this.GET_ORDERS_BY_CONTACTOperationCompleted, userState);
 }
 /// <remarks/>
 public void GET_ORDERS_BY_CONTACTAsync(InputParameters InputParameters) {
     this.GET_ORDERS_BY_CONTACTAsync(InputParameters, null);
 }
 /// <remarks/>
 public System.IAsyncResult BeginGET_ORDERS_BY_CONTACT(InputParameters InputParameters, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("GET_ORDERS_BY_CONTACT", new object[] {
                 InputParameters}, callback, asyncState);
 }
예제 #4
0
        /*  call OE_ORDER_CUST_Service : GET_ORDERS_BY_CONTACT() 
         *  Output : op
         */
        public ORDERS.OutputParameters LookupOrdersByContact(decimal contact_id, int _logIncidentId = 0, int _logContactId = 0)
        {
            string request = "";
            string response = "";
            string logMessage, logNote;

            ORDERS.OE_ORDER_CUST_Service client = EBSProxyFactory.GetOrdersByContactServiceInstance(ConfigurationSetting.GetOrdersByCust_WSDL, ConfigurationSetting.username, ConfigurationSetting.password, ConfigurationSetting.EBSServiceTimeout);
            ORDERS.SOAHeader hdr = new ORDERS.SOAHeader();
            hdr.Responsibility = "ORDER_MGMT_SUPER_USER";
            hdr.RespApplication = "ONT";
            hdr.Org_Id = "204";
            hdr.SecurityGroup = "STANDARD";
            hdr.NLSLanguage = "AMERICAN";

            client.SOAHeaderValue = hdr;
     
            ORDERS.InputParameters ip = new ORDERS.InputParameters();

            ip.P_CONTACT_PARTY_ID = contact_id;
            ip.P_CONTACT_PARTY_IDSpecified = true;

            ORDERS.OutputParameters op = null;
            Stopwatch stopwatch = new Stopwatch();

            try
            {
                request = serializer.Serialize(ip);

                logMessage = "Request of getting Orders by contact (GET_ORDERS_BY_CONTACT). ";
                logNote = "Request Payload: " + request;
                log.DebugLog(_logIncidentId, _logContactId, logMessage, logNote);
                // call the web service, catch the exception right away
                stopwatch.Start();
                op = client.GET_ORDERS_BY_CONTACT(ip);
                stopwatch.Stop();
                response = serializer.Serialize(op);
            }
            catch (Exception ex)
            {
                handleEBSException(ex, "GET_ORDERS_BY_CONTACT", _logIncidentId, _logContactId);
                // will throw the new exception (either timeout or error communicating ...)
                throw;
            }

                logMessage = "Response of getting Order(GET_ORDERS_BY_CONTACT). ";
                logNote = "Response Payload: " + response;

                log.DebugLog(_logIncidentId, _logContactId, logMessage, logNote, (int)stopwatch.ElapsedMilliseconds);           

            return op;
        }
예제 #5
0
 /// <remarks/>
 public void GET_ORDERS_BY_CONTACTAsync(InputParameters InputParameters)
 {
     this.GET_ORDERS_BY_CONTACTAsync(InputParameters, null);
 }
예제 #6
0
 /// <remarks/>
 public System.IAsyncResult BeginGET_ORDERS_BY_CONTACT(InputParameters InputParameters, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("GET_ORDERS_BY_CONTACT", new object[] {
         InputParameters
     }, callback, asyncState));
 }