<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAP DI API Connection problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-di-api-connection-problem/m-p/12624530#M2012942</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt; I am new for SAP DI API programming. right now, I installed DI API on my local machine.&lt;/P&gt;
  &lt;P&gt;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.&lt;/P&gt;
  &lt;P&gt;when I run my little test program, I got -10 for the result. below is the questions I have.&lt;/P&gt;
  &lt;P&gt;1. what is mean -10, any log file I can check what the exactly error I receive.&lt;/P&gt;
  &lt;P&gt;2. do I need copy the b1_local_machine.xml from the server to my local machine. &lt;/P&gt;
  &lt;P&gt;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. &lt;/P&gt;
  &lt;P&gt;if anyone can help me on this, really appreciated.&lt;/P&gt;
  &lt;P&gt;thanks,&lt;/P&gt;
  &lt;P&gt;Eddy&lt;/P&gt;
  &lt;P&gt; SAPbobsCOM.Company company = new SAPbobsCOM.Company();&lt;/P&gt;
  &lt;P&gt; company.Server = "SAPBUSINESS ONE";&lt;/P&gt;
  &lt;P&gt; company.CompanyDB = "db";&lt;/P&gt;
  &lt;P&gt; company.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2014;&lt;/P&gt;
  &lt;P&gt; company.DbUserName = @"username";&lt;/P&gt;
  &lt;P&gt; company.DbPassword = "password";&lt;/P&gt;
  &lt;P&gt; company.UserName = "username";&lt;/P&gt;
  &lt;P&gt; company.Password = "password";&lt;/P&gt;
  &lt;P&gt; company.language = SAPbobsCOM.BoSuppLangs.ln_English_Gb;&lt;/P&gt;
  &lt;P&gt; company.UseTrusted = false;&lt;/P&gt;
  &lt;P&gt; company.LicenseServer = "LicenseServer";&lt;/P&gt;
  &lt;P&gt; int connectionResult = company.Connect();&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 18:57:04 GMT</pubDate>
    <dc:creator>eqiu</dc:creator>
    <dc:date>2022-11-11T18:57:04Z</dc:date>
    <item>
      <title>SAP DI API Connection problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-di-api-connection-problem/m-p/12624530#M2012942</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt; I am new for SAP DI API programming. right now, I installed DI API on my local machine.&lt;/P&gt;
  &lt;P&gt;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.&lt;/P&gt;
  &lt;P&gt;when I run my little test program, I got -10 for the result. below is the questions I have.&lt;/P&gt;
  &lt;P&gt;1. what is mean -10, any log file I can check what the exactly error I receive.&lt;/P&gt;
  &lt;P&gt;2. do I need copy the b1_local_machine.xml from the server to my local machine. &lt;/P&gt;
  &lt;P&gt;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. &lt;/P&gt;
  &lt;P&gt;if anyone can help me on this, really appreciated.&lt;/P&gt;
  &lt;P&gt;thanks,&lt;/P&gt;
  &lt;P&gt;Eddy&lt;/P&gt;
  &lt;P&gt; SAPbobsCOM.Company company = new SAPbobsCOM.Company();&lt;/P&gt;
  &lt;P&gt; company.Server = "SAPBUSINESS ONE";&lt;/P&gt;
  &lt;P&gt; company.CompanyDB = "db";&lt;/P&gt;
  &lt;P&gt; company.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2014;&lt;/P&gt;
  &lt;P&gt; company.DbUserName = @"username";&lt;/P&gt;
  &lt;P&gt; company.DbPassword = "password";&lt;/P&gt;
  &lt;P&gt; company.UserName = "username";&lt;/P&gt;
  &lt;P&gt; company.Password = "password";&lt;/P&gt;
  &lt;P&gt; company.language = SAPbobsCOM.BoSuppLangs.ln_English_Gb;&lt;/P&gt;
  &lt;P&gt; company.UseTrusted = false;&lt;/P&gt;
  &lt;P&gt; company.LicenseServer = "LicenseServer";&lt;/P&gt;
  &lt;P&gt; int connectionResult = company.Connect();&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 18:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-di-api-connection-problem/m-p/12624530#M2012942</guid>
      <dc:creator>eqiu</dc:creator>
      <dc:date>2022-11-11T18:57:04Z</dc:date>
    </item>
  </channel>
</rss>

