Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP DI API Connection problem

eqiu
Discoverer
0 Likes
519
  • SAP Managed Tags

Hello,

I am new for SAP DI API programming. right now, I installed DI API on my local machine.

I added the DI API dll into my c# project. also, I refer the information in the b1_local_machine.xml on the server to enter the SDL servername when I install the DI API.

when I run my little test program, I got -10 for the result. below is the questions I have.

1. what is mean -10, any log file I can check what the exactly error I receive.

2. do I need copy the b1_local_machine.xml from the server to my local machine.

3. also, I tested on server side, I tried telnet hostname 40000 is working on the server side. but it is not working on my local machine. is it possible fw blocked 40000 from my local machine.

if anyone can help me on this, really appreciated.

thanks,

Eddy

SAPbobsCOM.Company company = new SAPbobsCOM.Company();

company.Server = "SAPBUSINESS ONE";

company.CompanyDB = "db";

company.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2014;

company.DbUserName = @"username";

company.DbPassword = "password";

company.UserName = "username";

company.Password = "password";

company.language = SAPbobsCOM.BoSuppLangs.ln_English_Gb;

company.UseTrusted = false;

company.LicenseServer = "LicenseServer";

int connectionResult = company.Connect();

0 REPLIES 0