I have defined the column xmlPayload as DOMElement in the schema testschema as below.
<methods>
<method library="tst:javaScript.js" name="methodname" static="true">
<parameters>
<param desc="schemaname" inout="in" name="xmlPayload" type="DOMElement"/>
<param desc="Return" inout="out" name="response" type="DOMElement"/>
</parameters>
</method>
</methods>
In the tst:javaScript.js script I have defined function tst_testschema_methodname(xmlPayload)
{
var column1 = xmlPayload.body.addrress;
logInfo(column1);
}
I dont see any value in column1.
My payload is
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<methodname>
<sessiontoken>tokenstring</sessiontoken>
<xmlPayload>
<body>
<custname>Samir</custname>
<address>Mumbai</address>
</body>
</xmlPayload>
</methodname>
</soap:Body>
</soap:Envelope>
I need to see Mumbai