我有点迷路。我跟着ERPConnect(西奥博尔德)的文档,以建立一个RFC服务器:如何使用ERPConnect(Theobald)接收idoc时进行身份验证?
static void Main(string[] args)
{
// define server object and start
RFCServer s = new RFCServer();
s.Logging = true;
s.GatewayHost = "hamlet";
s.GatewayService = "sapgw11";
s.ProgramID = "ERPTEST";
s.CanReceiveIdocs = true;
s.IncomingIdoc+= new ERPConnect.RFCServer.OnIncomingIdoc(s_IncomingIdoc);
s.InternalException+= new ERPConnect.RFCServer.OnInternalException (s_InternalException);
s.Start();
Console.WriteLine("Server is running. Press any key to exit.");
Console.ReadLine();
s.Stop();
}
唯一的问题是,我想不通,怎么把我的密码凭据到SAP服务器。因此,我得到了内部例外,我无权获得idocs。