cancel
Showing results for 
Search instead for 
Did you mean: 

Problem connected to DI Server to ver.2005 after upgrade

0 Kudos

Hello , I need help!

I have problem to connect to di server 2005

use .net framework v2.0.50727

code:

SBODI_Server.NodeClass sapdi = GetDiObject();

string sCmd = "";

sCmd = @"<?xml version=""1.0"" encoding=""UTF-16""?>";

sCmd += @"<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">";

sCmd += @"<env:Body><dis:Login xmlns:dis=""http://www.sap.com/SBO/DIS"">";

sCmd += "<DatabaseServer>lod-sap</DatabaseServer>";

sCmd += "<DatabaseName>DEMO</DatabaseName>";

sCmd += "<DatabaseType>dst_MSSQL</DatabaseType>";

sCmd += "<DatabaseUsername>sa</DatabaseUsername>";

sCmd += "<DatabasePassword></DatabasePassword>";

sCmd += "<CompanyUsername>manager</CompanyUsername>";

sCmd += "<CompanyPassword>manager</CompanyPassword>";

sCmd += "<Language>ln_English</Language>";

sCmd += "<LicenseServer>lod-sap</LicenseServer>";

sCmd += "</dis:Login></env:Body></env:Envelope>";

string sSOAPans = "";

sSOAPans = DISnode.Interact( sCmd );

I response "Could not commit transaction"

XML:

<?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"><b>Could not commit transaction</b></env:Text>

</env:Reason>

- <env:Detail>

<Command>Login</Command>

</env:Detail>

</env:Fault>

</env:Body>

</env:Envelope>

thx

Accepted Solutions (0)

Answers (1)

Answers (1)

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nimrod,

LicenseServer should be something like "ServerName:portNumber" and in your code I can only see the server name.

You can have obtain the port number from the LicenseManager -> Settings -> Connection information (from Server Tools -> Server Manager, same tool you use to stop/start DI Server).

Have you tried to run the sample provided with the SDK, maybe it can help.

Hope it helps

Trinidad.

0 Kudos

Trinidad thank you.

Solved my problem

Former Member
0 Kudos

Tried the sample, tried a lot of threads options throughout the forum and still struggling with this "Could not commit transaction..."

Hope I will succeed. I'm not someone that let down so easily