PCML decription is used. The PCML file is located on IBMi IFS.
EacXML oXml = new EacXML(ConnectionIBM);
oXml.XmlLoadDefinition("PCML", "/tmp/rpcsample.pcml");
string result = oXml.XmlCallProgram("RPCSAMPLE",
"<OP1>2</OP1><OP2>3</OP2><STR1>Aura</STR1>");
//string result contains:
//< ParameterList >
//< OP2 Type = "Packed" > 5.00 </ OP2 >
//< STR2 Type = "Char" > Aura </ STR2 >
//< OP3 Type = "Packed" > 6.0000 </ OP3 >
//</ ParameterList >
XElement root = XElement.Parse(result);
string displayResult = "";
foreach (XElement el in root.Descendants())
{
displayResult = displayResult + el.Name + " = " + el.Value + " - ";
}
MessageBox.Show(displayResult);