Created
March 15, 2019 07:36
-
-
Save AngelaIp/175cec8c8d3519a4712cd1d2460723ba to your computer and use it in GitHub Desktop.
Call Server Method from Server Method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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