on 04-06-2011 5:04 PM
Hi all,
I am starting a new project that requires using the SAP connector 3.0 to make RFC calls. However, the system is running on port 3350 instead of 3300. Does anyone know how to make this work? I have tried the following below without success:
static void Main()
{
RfcDestinationManager.RegisterDestinationConfiguration(new SAPConfiguration());
var destination = RfcDestinationManager.GetDestination("thesystem");
var repo = destination.Repository;
}
public class SAPConfiguration : IDestinationConfiguration
{
public RfcConfigParameters GetParameters(string destinationName)
{
var parms = new RfcConfigParameters();
if (destinationName == "thesystem")
{
parms.Add(RfcConfigParameters.AppServerHost, "55.55.55.55:3350"); // not the real ip, obviously
parms.Add(RfcConfigParameters.SystemNumber, "ABC");
parms.Add(RfcConfigParameters.User, "username");
parms.Add(RfcConfigParameters.Password, "password");
parms.Add(RfcConfigParameters.Client, "100");
parms.Add(RfcConfigParameters.Language, "EN");
parms.Add(RfcConfigParameters.PoolSize, "5");
parms.Add(RfcConfigParameters.MaxPoolSize, "10");
parms.Add(RfcConfigParameters.IdleTimeout, "600");
}
return parms;
}
....
}
But receive the following error:
LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR hostname '55.55.55.55:3350' unknown
TIME Wed Apr 06 11:33:58 2011
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -2
MODULE ninti.c
LINE 895
DETAIL NiPGetHostByName: '55.55.55.55:3350' not found
SYSTEM CALL getaddrinfo
COUNTER 2
Any ideas?
Thanks!!
I believe I have figured out the issue. I was setting the system number field incorrectly. When I set the system number correctly, that in turn is setting the port which the SAP connector uses. So, if I set System Number = 50, the connector will connect to 'host:3350'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.