Skip to content

Instantly share code, notes, and snippets.

@AngelaIp
Created March 15, 2019 07:36
Show Gist options
  • Save AngelaIp/175cec8c8d3519a4712cd1d2460723ba to your computer and use it in GitHub Desktop.
Save AngelaIp/175cec8c8d3519a4712cd1d2460723ba to your computer and use it in GitHub Desktop.
Call Server Method from Server Method
Innovator inn = this.getInnovator();
this.setProperty("myproperty_","valueofsomething");
Item res = this.apply("MyTestMethod");
if (res.isError())
{
XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml(res.ToString());
string faultstring = xDoc.SelectSingleNode("//faultstring").InnerText;
return inn.newError("Error while doing something: " + faultstring);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment