protected void Page_Load(object sender, EventArgs e) { try { //?pID={}&phone={}&ds={}&tID={} string pID = (Request.QueryString["pID"] != null) ? Request.QueryString["pID"].ToString() : "", phone = (Request.QueryString["phone"] != "") ? Request.QueryString["phone"].ToString() : "", descr = (Request.QueryString["ds"] != null) ? Request.QueryString["ds"].ToString() : "", tID = (Request.QueryString["tID"] != null) ? Request.QueryString["tID"].ToString() : ""; if (string.IsNullOrEmpty(pID) != true && string.IsNullOrEmpty(phone) != true && string.IsNullOrEmpty(tID) != true) { ClickMNS.ProductSubscribeReq wRequest = new ClickMNS.ProductSubscribeReq(); wRequest.channelID = 1; //check comment map wRequest.MSISDN = phone; wRequest.operDesc = descr; wRequest.operTime = DateTime.Now.ToString("yyyyMMddHHmmss"); wRequest.transactionID = tID; ClickMNS.MNSProductReqService ap = new ClickMNS.MNSProductReqService(); ClickMNS.SubscribeMNSProductRsp wResponse = ap.subscribeMNSProduct(wRequest); Response.Write(wResponse.result.resultCode); //check comment map } else { Response.Write("-1"); } } catch (Exception ex) { Response.Write(ex.ToString()); } }
public SubscribeMNSProductRsp subscribeMNSProduct(ProductSubscribeReq in0) { object[] results = this.Invoke("subscribeMNSProduct", new object[] { in0 }); return((SubscribeMNSProductRsp)(results[0])); }
/// <remarks/> public void subscribeMNSProductAsync(ProductSubscribeReq in0, object userState) { if ((this.subscribeMNSProductOperationCompleted == null)) { this.subscribeMNSProductOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsubscribeMNSProductOperationCompleted); } this.InvokeAsync("subscribeMNSProduct", new object[] { in0 }, this.subscribeMNSProductOperationCompleted, userState); }
/// <remarks/> public void subscribeMNSProductAsync(ProductSubscribeReq in0) { this.subscribeMNSProductAsync(in0, null); }