AnsweredAssumed Answered

I am facing a problem while parsing an XML which is having CDATA and JSON message and to create an arguments while creating a VS.

Question asked by venukg on Sep 21, 2017
Latest reply on Apr 4, 2018 by venukg

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope >
    <ns:process xmlns:ns="">
  "listTransactionsRequest": {
   "includeUnpostedActivity": true,

      "AccountNo": 00


Problem is to create Argument of "CompanyNumber" / AccountNO?


Step 1: I have used data protocol filter on Listener step and below is the script which I used.

JSONParser parser = new JSONParser();

String str1 = testExec.getStateValue("My_JSONMSG");
String str = str1.substring(str1.indexOf("CDATA[")+6,str1.indexOf("]]}>"));
str = str.trim();

JSONObject jsonObject = (JSONObject) parser.parse(str);
String ProductCode = (String) jsonObject.get("hoganProductCode");
ParameterList args = lisa_vse_request.getArguments();
args.addParameter(new Parameter("Hogan_Productcode", ProductCode));


Step2: Added XML Xpath filter on Listener step



XML Xpath filter is not capturing the required argument. can some one help me to get the argument.