威狼移动Provision接口(ASP.NET)

移动MISC1.6平台的Provision接口(短信定购关系同步)。用ASP.NET开发。

下载地址:http://www.wizwolf.com/club/ShowForum.asp?forumid=11

阅读更多

移动Provision的问题

12-21

用的webservice,c#rn我怎样得到dsmp请求过来的值?rnrnusing System; rn using System.Collections; rn using System.ComponentModel; rn using System.Data; rn using System.Diagnostics; rn using System.Web; rn using System.Web.Services; rn using System.Web.Services.Protocols; rn using System.Xml; rn using System.Xml.Serialization; rn using System.Web.Services.Description; rn using System.IO; rn using System.Text; rn rn namespace Provision rn rn /// rn /// Dsmp 的摘要说明。 rn /// rn /// rn [XmlRoot(Namespace="http://www.monternet.com/dsmp/schemas/")] rn public class TransactionID : SoapHeader rn rn [XmlText(typeof(string))] rn public string ID; rn rn rn public class UserID rn rn public int UserIDType; rn public string MSISDN; rn public string PseudoCode; rn rn rn public class AddressInfo rn rn public int DeviceType; rn public string DeviceID; rn rn rn public class SyncOrderRelationResp rn rn public string Version; rn public string MsgType; rn public int hRet; rn rn rn [WebService(Namespace="http://www.monternet.com/dsmp/schemas/")] rn [SoapDocumentService(RoutingStyle=SoapServiceRoutingStyle.RequestElement)] rn public class Provision : System.Web.Services.WebService rn rn public Provision() rn rn //CODEGEN: 该调用是 ASP.NET Web 服务设计器所必需的 rn InitializeComponent(); rn rn rn rn rn #region 组件设计器生成的代码 rn rn //Web 服务设计器所必需的 rn private IContainer components = null; rn rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改 rn /// 此方法的内容。 rn /// rn private void InitializeComponent() rn rn rn rn rn /// rn /// 清理所有正在使用的资源。 rn /// rn protected override void Dispose( bool disposing ) rn rn if(disposing && components != null) rn rn components.Dispose(); rn rn base.Dispose(disposing); rn rn rn #endregion rn rn rn rn public TransactionID transID; rn public TextWriter w; rn rn /// rn /// 正向订购服务 rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn /// rn [WebMethod] rn [SoapHeader("transID", Direction=SoapHeaderDirection.InOut)] rn [SoapDocumentMethod("sim.SyncOrderRelation",RequestElementName="SyncOrderRelationReq",ResponseElementName="SyncOrderRelationResp")] rn [return: System.Xml.Serialization.SoapElementAttribute("return")] rn public void SyncOrderRelationReq( rn ref string Version , rn ref string MsgType, rn AddressInfo Send_Address, rn AddressInfo Dest_Address, rn UserID FeeUser_ID, rn UserID DestUser_ID, rn string LinkID, rn int ActionID, rn int ActionReasonID, rn string SPID, rn string SPServiceID, rn int AccessMOde, rn byte[] FeatureStr, rn out int hRet rn ) rn rn rn rn Version="1.5.0"; rn MsgType = "SyncOrderRelationResp"; rn rn rn hRet = 0 rn // 下面业务处理 rn rn

没有更多推荐了,返回首页