?? provisiondsmp.cs
字號:
?using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Text;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
using System.Web.SessionState;
using System.Web.Services.Protocols;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
using System.Web.Services.Description;
namespace Provision
{
/// <summary>
/// dsmp 的摘要說明。
/// </summary>
[WebService(Namespace = "http://www.monternet.com/dsmp/schemas/")]
public class Provision : System.Web.Services.WebService
{
public Provision()
{
InitializeComponent();
}
#region 組件設計器生成的代碼
//Web 服務設計器所必需的
private IContainer components = null;
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}
#endregion
public TransactionID transID;
[WebMethod]
[SoapHeader("transID", Direction = SoapHeaderDirection.InOut)]
[SoapDocumentMethod("sim.SyncOrderRelation", RequestElementName = "SyncOrderRelationReq", ResponseElementName = "SyncOrderRelationResp", Use = System.Web.Services.Description.SoapBindingUse.Literal)]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public void SyncOrderRelation(
[XmlElement(Form = XmlSchemaForm.Unqualified)]
ref string Version,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
ref string MsgType,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
AddressInfo Send_Address,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
AddressInfo Dest_Address,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
UserID FeeUser_ID,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
UserID DestUser_ID,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
string LinkID,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
int ActionID,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
int ActionReasonID,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
string SPID,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
string SPServiceID,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
int AccessMode,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
byte[] FeatureStr,
[XmlElement(Form = XmlSchemaForm.Unqualified)]
out int hRet
)
{
Version = "1.5.0";
hRet = 0;
MsgType = "SynOrderRelationReq";
}
}
[XmlRoot(Namespace = "http://www.monternet.com/dsmp/schemas/")]
public class TransactionID : SoapHeader
{
[XmlText(typeof(string))]
public string ID;
}
public class UserID
{
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public int UserIDType;
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public string MSISDN;
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public byte[] PseudoCode;
}
public class AddressInfo
{
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public int DeviceType;
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public string DeviceID;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -