Author Message
MichaelReynolds [Avatar]

Joined: Nov 7, 2013
Messages: 140
Location: South Carolina
Offline
The web service returns XML. How do I parse the xml document within OD?

Michael Reynolds mike.reynolds@realpage.com (864) 272-3541
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
In the OD runtime there is a class named XML that you can use to create a document and then use the standard dom methods to extract data. Example:


Document doc = null;
try {
doc = XML.getDocumentFromXMLString(messageData);
} catch (Exception e) {
mySession.throwRTException("", e);
}
Element element = doc.getDocumentElement();

/* session values */
String ucid = XML.getAttribute(element, IMessageParts.UCID);


MichaelReynolds [Avatar]

Joined: Nov 7, 2013
Messages: 140
Location: South Carolina
Offline
Thanks man. How are you doing?

Michael Reynolds mike.reynolds@realpage.com (864) 272-3541
Go to:   
Mobile view