on 04-14-2005 10:53 AM
Hello,
Je recherche des exemples d'utilisation de l'API Java avec SAP Business One. En effet, les exemples fournis en VB.Net fonctionne correcteement, par contre, je n'arrive pas à effectuer une connexion en Java.
Help me please !
A+
Hello Laurent,
here's a bit of source code that should work; I hope it helps!
Sorry, but it would take too long to reply in French
Frank
private ICompany m_cmp;
...
int rc = 0;
try
{
// initializing the company object
m_cmp = SBOCOMUtil.newCompany();
m_cmp.setUseTrusted(false);// just as a sample
m_cmp.setLanguage(SBOCOMConstants.BoSuppLangs_ln_English);
m_cmp.setUserName("manager");
m_cmp.setPassword("manager");
m_cmp.setDBUserName("sa");
m_cmp.setDBPassword("");
m_cmp.setCompanyDB("SBODemo_US");
m_cmp.setServer("(local)");
rc = m_cmp.connect();
if(rc == 0)
.....
else
.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.