web stats
Mirth Community - View Single Post - Handling namespaces in JavaScript XML constructor
View Single Post
Old 03-05-2015, 04:14 PM
Anirudh Anirudh is offline
OBX.3 Kenobi
Join Date: Sep 2012
Posts: 135
Anirudh is on a distinguished road

for soap name space:

var soapenv = new Namespace('http://schemas.xmlsoap.org/soap/envelope/');

set default name space as

default xml namespace = '<URL>'

you can get response from destination as

var resp = responseMap.get('destination 1 name').getMessage();

var respXML = new XML(resp);

to check an element

var element = respXML.soapenv::Body:elementname.elementname.toSt ring()
Reply With Quote