PreviousNext
Help > Easycom .NET > Easycom namespace > EacXML > Example 1
Example 1

 

Into this example, we use a RPG description:

  

            EacXML oXml = new EacXML(ConnectionIBM);

 

            oXml.XmlBindSrv("XMPSRVPGM");

            oXml.XmlLoadDefinition("RPG", "EASYCOMXMP/QRPGLESRC,CVTNW_H");

 

string result = oXml.XmlCallProgram("FCVTNW",     "<LIMIT>150</LIMIT><DECV>12345</DECV>");

 

            result = result.Substring(0, result.IndexOf("</ReturnValue>") + 14);

 

            XmlDocument doc = new XmlDocument();

            doc.LoadXml(result);

            XmlNode infos = doc.SelectSingleNode("ReturnValue");

            string content = infos.InnerText;

            MessageBox.Show(content);