on 04-15-2007 5:31 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
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.