Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Session ID Not Supplied in DI SERVER.

Hi Expert,

       I using DI SERVER.I have facing a Error "Session ID Not Supplied ".Yesterday function without error.please give me a helpful answer. i Attched my code.

public void CreateSession()

        {

            this.node = new Node();

            string  sCmd = string.Empty;

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

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

            sCmd += @"<env:Body>";

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

            sCmd += "<DatabaseServer>" + "NANDISH-PC\\SQLEXPRESS" + "</DatabaseServer>";

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

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

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

            sCmd += "<DatabasePassword>" + "avr@123" + "</DatabasePassword>";

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

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

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

            sCmd += "<LicenseServer>" + "NANDISH-PC" + "</LicenseServer>"; //ILTLVH25

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

            string login = node.Interact(sCmd);

            XmlDocument response = new XmlDocument();

            response.LoadXml(login);

            var sessionid = response.DocumentElement.InnerText;

            Guid session = Guid.Empty;

            if (Guid.TryParse(sessionid, out session))

            {

                this.sessionId = sessionid;

            }

            else

            {

                MessageBox.Show(sessionId);

            }

        }

Tags:
Former Member
Former Member replied

Hi Nandish

Database Server can be either the name or the IP address of the server machine where the DI Server is installed.


i hope this will help you.


Thanks,

Amitgiri

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question