public PurchaseOrderResItem[] PurchaseOrder_Out([System.Xml.Serialization.XmlElementAttribute(Namespace = "http://total-environment/PI/PurchaseOrder")] PurchaseOrderReq PurchaseOrderReq) { object[] results = this.Invoke("PurchaseOrder_Out", new object[] { PurchaseOrderReq }); return((PurchaseOrderResItem[])(results[0])); }
/// <remarks/> public void PurchaseOrder_OutAsync(PurchaseOrderReq PurchaseOrderReq, object userState) { if ((this.PurchaseOrder_OutOperationCompleted == null)) { this.PurchaseOrder_OutOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPurchaseOrder_OutOperationCompleted); } this.InvokeAsync("PurchaseOrder_Out", new object[] { PurchaseOrderReq }, this.PurchaseOrder_OutOperationCompleted, userState); }
//public IList<EbuildService.PurchaseOrderResItem> CreatePO(EbuildService.PurchaseOrderReq POReq) //{ // //if (log.IsDebugEnabled) // // log.Debug("Entered into CreateCustomer SAP Call"); // string Username = WebConfigurationManager.AppSettings["SAPConnectorUserName"].ToString(); // string Pasword = WebConfigurationManager.AppSettings["SAPConnectorPassword"].ToString(); // EbuildService.PurchaseOrder_OutClient CustomerService = new EbuildService.PurchaseOrder_OutClient(); // // CustomerService.Credentials = new System.Net.NetworkCredential(Username, Pasword); // CustomerService.ClientCredentials.UserName.UserName = Username; // CustomerService.ClientCredentials.UserName.Password = Pasword; // //IList<EbuildService.PurchaseOrderReqItem> CustomerReqList = new List<EbuildService.PurchaseOrderReqItem>(); // IList<EbuildService.PurchaseOrderResItem> CustomerRespList = new List<EbuildService.PurchaseOrderResItem>(); // try // { // CustomerRespList = CustomerService.PurchaseOrder_Out(POReq); // } // catch (Exception ex) // { // //if (log.IsDebugEnabled) // // log.Debug("Exception From SAP Call:" + ex.Message); // } // return CustomerRespList; //} public IList <POService.PurchaseOrderResItem> CreatePO(POService.PurchaseOrderReq POReq) { if (log.IsDebugEnabled) { log.Debug("Entered into PO SAP Call"); } string inputValues = ""; string Username = WebConfigurationManager.AppSettings["SAPConnectorUserName"].ToString(); string Pasword = WebConfigurationManager.AppSettings["SAPConnectorPassword"].ToString(); POService.PurchaseOrder_OutService CustomerService = new POService.PurchaseOrder_OutService(); CustomerService.Credentials = new System.Net.NetworkCredential(Username, Pasword); //IList<EbuildService.PurchaseOrderReqItem> CustomerReqList = new List<EbuildService.PurchaseOrderReqItem>(); IList <POService.PurchaseOrderResItem> CustomerRespList = new List <POService.PurchaseOrderResItem>(); try { inputValues = InPutValuesSendingToSAP(POReq, false); if (log.IsDebugEnabled) { log.Debug("Input Values For PO SAP Call: " + inputValues); } CustomerRespList = CustomerService.PurchaseOrder_Out(POReq); } catch (Exception ex) { new RecordException().RecordUnHandledException(ex); if (log.IsDebugEnabled) { log.Debug("Exception From PO SAP Call:" + ex.Message); } } return(CustomerRespList); }
/// <remarks/> public void PurchaseOrder_OutAsync(PurchaseOrderReq PurchaseOrderReq) { this.PurchaseOrder_OutAsync(PurchaseOrderReq, null); }