on 09-03-2007 6:24 AM
hi all
when trying to log in using the DI server I get the following error message
Error env:Receiver -1 Could not commit transaction Login
cmd = "<?xml version=""1.0"" encoding=""UTF-16""?>"
cmd = cmd & "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">"
cmd = cmd & "<env:Body>" & Environment.NewLine
cmd = cmd & "<dis:Login xmlns:dis=""http://www.sap.com/SBO/DIS"">"
cmd = cmd & "<DatabaseServer>sap-1</DatabaseServer>"
cmd = cmd & "<DatabaseName>SBODemo_Us</DatabaseName>"
cmd = cmd & "<DatabaseType>dst_MSSQL</DatabaseType>"
cmd = cmd & "<DatabaseUsername>sa</DatabaseUsername>"
cmd = cmd & "<DatabasePassword></DatabasePassword>"
cmd = cmd & "<CompanyUsername>manager</CompanyUsername>manager</CompanyUsername>"
cmd = cmd & "<CompanyPassword>inecom</CompanyPassword>manager</CompanyPassword>"
cmd = cmd & "<Language>ln_English</Language>"
cmd = cmd & "<LicenseServer>localhost:30000</LicenseServer>"
cmd = cmd & "</dis:Login>"
cmd = cmd & "</env:Body>"
cmd = cmd & "</env:Envelope>"
sSOAPans = pDISnode.Interact(cmd)
thanks for ur help
jason
Hi Jason,
This generic error message appears in a number of different situations.
I think the main problem with your SOAP request is that the CompanyUsername and CompanyPassword elements seem to be badly formed:
cmd = cmd & "<CompanyUsername>manager</CompanyUsername>manager</CompanyUsername>"
cmd = cmd & "<CompanyPassword>inecom</CompanyPassword>manager</CompanyPassword>"
==> As you can see, there are double closing tags for both elements.
Other suggestions:
- I would suggest that you omit the <LicenseServer> element completely from the SOAP request. You really only need this when the License Server is running on a different server than the B1 database. Quite often specifying the LicenseServer causes problems.
You would also get the same error message even if you just had a wrong username or password for either the Company user or Database user. DI Server is not so user friendly when it comes to error messages.
Henry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I would suggest replacing the db server name in <DatabaseServer> with the IP address of the server.
What is your Database server type and B1 version?
I've noticed that while dst_MSSQL used to work fine with MS SQL 2005, together with B1 2007 it no longer works. Now you need to specify dst_MSSQL2005 instead.
I'm not sure about this, but please also check that the DatabaseName element contains the db name exactly with the same casing as it appears on the SQL Server.
Henry
Hi,
Please do the following:
- If you don't already have extended logging activated in the Service Manager, activate it and then stop and restart the DI Server service.
- Post the whole SOAP Request and Response here as you see it in the DI Server log file
You might also want to check the Windows Event Logs just in case it's something more severe.
Henry
hi
heres whats in the log
04/09/2007 10:23:18 Start of SBO DI Server
04/09/2007 10:23:28 Request
<?xml version="1.0" encoding="UTF-16"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><dis:Login xmlns:dis="http://www.sap.com/SBO/DIS"><DatabaseServer>jason-1</DatabaseServer>
<DatabaseName>SBODemo_US</DatabaseName><DatabaseType>dst_MSSQL2005</DatabaseType>
<DatabaseUsername>sa</DatabaseUsername><DatabasePassword></DatabasePassword>
<CompanyUsername>manager</CompanyUsername><CompanyPassword>manager</CompanyPassword>
<Language>ln_English</Language><LicenseServer>localhost:30000</LicenseServer></dis:Login></env:Body>
</env:Envelope>
04/09/2007 10:23:36 Response (Fault)
<?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><env:Fault><env:Code>
<env:Value>env:Receiver</env:Value>
<env:Subcode><env:Value>-1</env:Value></env:Subcode></env:Code><env:Reason>
<env:Text xml:lang="en">Could not commit transaction</env:Text>
</env:Reason><env:Detail><Command>Login</Command></env:Detail></env:Fault></env:Body>
</env:Envelope>
jason
Hi,
It seems that you still have the LicenseServer element included and also the DatabaseServer is specified using a hostname instead of IP address.
If you need to keep the LicenseServer element intact, at least the server address should be consistent between DatabaseServer and LicenseServer.
BTW, have you read this <a href="/people/sap.user72/blog/2006/05/29/getting-started-with-di-server">blog</a>?
Henry
Hi,
I often rebuild solution and I'm still stuck with this error message.
I don't know where to look anymore
The SOAP Message is very well formed and exactly the same as the documentation. Now how can I know what it is ?
Here's my scenario :
I'm making an ASP.NET web page, referencing the DI SERVER in the COM object then, using the Node.Interact, I send the SOAP message and the response is this error.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
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.