我在C$#源码里看到用到方法,跟踪后发现为从元数据,有谁能解释下,我如何看到具体的方法啊,比如参数等等,因为从元数据里全部为空的。如下:
protected void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
try
{
Session["DOMAIN_NO"] = null;
int nID = int.Parse(Session["SERVER_ID"].ToString());
WebTrans.ISDClient client = new WebTrans.ISDClient(nID); string sParam = "<root><BULLETIN_TYPE>";
sParam += "<TYPE_ID></TYPE_ID>";
sParam += "</BULLETIN_TYPE></root>";
//下面是调用元数据方法
DataSet oDS = client.RxExecute("BASSO.QryBulletinBoard002", sParam, 0);
//数据绑定
lstData.DataSource = oDS;
lstData.DataBind();
}
catch (Exception e1)
{
Session["Messages"] = e1.Message;
Response.Redirect("Messages.aspx");
}
}
---------------------------------------------从元数据
namespace WebTrans
{
public class ISDClient
{
public ISDClient(int SERVER_ID);
//跟踪到这里看不到具体的方法了,只有参数,如何看啊??
public DataSet RxExecute(string sServiceID, string sParam, object oParam);
public int TxExecute(string sServiceID, TxType oType, string sParam, object oParam);
}
}
protected void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
try
{
Session["DOMAIN_NO"] = null;
int nID = int.Parse(Session["SERVER_ID"].ToString());
WebTrans.ISDClient client = new WebTrans.ISDClient(nID); string sParam = "<root><BULLETIN_TYPE>";
sParam += "<TYPE_ID></TYPE_ID>";
sParam += "</BULLETIN_TYPE></root>";
//下面是调用元数据方法
DataSet oDS = client.RxExecute("BASSO.QryBulletinBoard002", sParam, 0);
//数据绑定
lstData.DataSource = oDS;
lstData.DataBind();
}
catch (Exception e1)
{
Session["Messages"] = e1.Message;
Response.Redirect("Messages.aspx");
}
}
---------------------------------------------从元数据
namespace WebTrans
{
public class ISDClient
{
public ISDClient(int SERVER_ID);
//跟踪到这里看不到具体的方法了,只有参数,如何看啊??
public DataSet RxExecute(string sServiceID, string sParam, object oParam);
public int TxExecute(string sServiceID, TxType oType, string sParam, object oParam);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货