Ejemplo n.º 1
0
        public OutputParameters1 GET_ORDERS_BY_INCIDENT([System.Xml.Serialization.XmlElementAttribute(Namespace = "http://xmlns.oracle.com/apps/ont/soaprovider/plsql/oe_order_cust/get_orders_by_in" +
                                                                                                                  "cident/")] InputParameters1 InputParameters)
        {
            object[] results = this.Invoke("GET_ORDERS_BY_INCIDENT", new object[] {
                InputParameters
            });

            return((OutputParameters1)(results[0]));
        }
Ejemplo n.º 2
0
 /// <remarks/>
 public void GET_ORDERS_BY_INCIDENTAsync(InputParameters1 InputParameters, object userState)
 {
     if ((this.GET_ORDERS_BY_INCIDENTOperationCompleted == null))
     {
         this.GET_ORDERS_BY_INCIDENTOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGET_ORDERS_BY_INCIDENTOperationCompleted);
     }
     this.InvokeAsync("GET_ORDERS_BY_INCIDENT", new object[] {
         InputParameters
     }, this.GET_ORDERS_BY_INCIDENTOperationCompleted, userState);
 }
 /// <remarks/>
 public void GET_ORDERS_BY_INCIDENTAsync(InputParameters1 InputParameters, object userState) {
     if ((this.GET_ORDERS_BY_INCIDENTOperationCompleted == null)) {
         this.GET_ORDERS_BY_INCIDENTOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGET_ORDERS_BY_INCIDENTOperationCompleted);
     }
     this.InvokeAsync("GET_ORDERS_BY_INCIDENT", new object[] {
                 InputParameters}, this.GET_ORDERS_BY_INCIDENTOperationCompleted, userState);
 }
 /// <remarks/>
 public void GET_ORDERS_BY_INCIDENTAsync(InputParameters1 InputParameters) {
     this.GET_ORDERS_BY_INCIDENTAsync(InputParameters, null);
 }
 /// <remarks/>
 public System.IAsyncResult BeginGET_ORDERS_BY_INCIDENT(InputParameters1 InputParameters, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("GET_ORDERS_BY_INCIDENT", new object[] {
                 InputParameters}, callback, asyncState);
 }
Ejemplo n.º 6
0
        /*  call OE_ORDER_CUST_Service : GET_ORDERS_BY_INCIDENT() 
         *  Output : op
         */
        public ORDERS.OutputParameters1 LookupOrdersByIncident(decimal incident_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.InputParameters1 ip = new ORDERS.InputParameters1();

            ip.P_INCIDENT_NUMBER = incident_id.ToString();

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

            try
            {
                request = serializer.Serialize(ip);

                logMessage = "Request of getting Orders by incident (GET_ORDERS_BY_INCIDENT). ";
                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_INCIDENT(ip);
                stopwatch.Stop();
                response = serializer.Serialize(op);
            }
            catch (Exception ex)
            {
                handleEBSException(ex, "GET_ORDERS_BY_INCIDENT", _logIncidentId, _logContactId);
                // will throw the new exception (either timeout or error communicating ...)
                throw;
            }

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

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

            return op;
        }
Ejemplo n.º 7
0
 /// <remarks/>
 public void GET_ORDERS_BY_INCIDENTAsync(InputParameters1 InputParameters)
 {
     this.GET_ORDERS_BY_INCIDENTAsync(InputParameters, null);
 }
Ejemplo n.º 8
0
 /// <remarks/>
 public System.IAsyncResult BeginGET_ORDERS_BY_INCIDENT(InputParameters1 InputParameters, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("GET_ORDERS_BY_INCIDENT", new object[] {
         InputParameters
     }, callback, asyncState));
 }