AnsweredAssumed Answered

XOG .NET interface retrieve the XOGOutput

Question asked by eVBI on Dec 15, 2015
Latest reply on Jan 4, 2016 by eVBI

Hi,

 

I'v created a .NET interface using webservice with PPM 14.3. It works fine but I would like to handle issues.

Currently I do not get the XOGOutput tag back in fact nothing at all which is very difficult to handle possible errors.

 

Created a .NET project add the webreference.

It works transactions are xogged, but no result is returned:

 

.NET Code

-------------------------------------------------------------------------------------------------------

   

            XmlDocument doc = new XmlDocument();

            doc.LoadXml(soapMessage);

      

      

            XOGALL.Auth objAuth = new XOGALL.Auth();

            XOGALL.Login loginXOG = new XOGALL.Login();

            loginXOG.TenantID = ConfigurationManager.AppSettings["SoapMethod"];

            loginXOG.Username = ConfigurationManager.AppSettings["SoapUserId"];

            loginXOG.Password = ph.Decrypt(ConfigurationManager.AppSettings["SoapPassword"].ToString()).ToString();

            XOGALL.AllObjectsPortClient tranReq = new XOGALL.AllObjectsPortClient();

      

            try

            {

                objAuth.Username = ConfigurationManager.AppSettings["SoapUserId"];

                objAuth.Password = ConfigurationManager.AppSettings["SoapPassword"];

             

                if (sessionid == "")

                {

                    sessionid = tranReq.Login(loginXOG);

                    objAuth.SessionID = sessionid;

                }

 

 

               XmlElement XOGOutput;

                XOGOutput = tranReq.WriteTransaction(objAuth, doc.DocumentElement);

              -- The XOGOutput is always null !!!! ;-(

 

                tranReq.Close();

 

            }

 

kind regards,

 

Elwin

 

Message was edited by: Elwin van BOMMEL

Outcomes