Thanks all for Response. As suggested here I am trying to add Scriptable DPH but I am not seeing the changes in the request.
I am creating MQ service and in lisa.vse.request body is showing as null.
I have used RDM protocol to create argument(body) for the message coming in queue and argument is getting created in VSI for message
I tried doing replace Request Body and replace in argument. But I am not seeing changes by either of the approach. ( for testing purpose I tried replacing a character of request)
I have used below code for request Body
String theBody = lisa_vse_request.getBodyText();
theBody.replace('X','Z')
lisa_vse_request.setBodyText(theBody);
This gives me warning
Did not get a valid Request object so we ignore processing this transaction.
java.lang.NullPointerException
at bsh.ParseException.getErrorLineNumber(ParseException.java:276)
To replace Argument text below code is used
ParameterList args = lisa_vse_request.getArguments();
System.out.println("-------------------------------------------");
System.out.println(args.get("body"));
args.get("body").replace('X','Z');
lisa_vse_request.setArguments(args);
System.out.println("*************************************");
System.out.println(lisa_vse_request.getArguments());
But I am not seeing changes in request/argument text
Please help me to figure out what I am doing wrong here.
Thanks
Ekta
Original Message:
Sent: 09-16-2020 04:52 PM
From: Vaibhav Jain
Subject: Matching request having GS and FS character in virtual service
Hi Ekta,
You can use Scriptable data protocol to replace the values as below, followed by Delimited Text Data Protocol
------------------------------
Regards,
Vaibhav Jain
Capgemini
Original Message:
Sent: 09-16-2020 06:18 AM
From: Ekta Srivastava
Subject: Matching request having GS and FS character in virtual service
Attached request
Original Message:
Sent: 09-15-2020 03:56 PM
From: Shiney Abraham
Subject: Matching request having GS and FS character in virtual service
Ekta, is it possible to attach a sample Req/Resp pairs to this post. I will try to see what protocols we can use.
if not, please open a ticket with Broadcom support.
thanks
Shiney
Original Message:
Sent: 09-15-2020 03:47 PM
From: Ekta Srivastava
Subject: Matching request having GS and FS character in virtual service
Hello All,
I need to create a virtual service where the incoming request is having GS and FS char ( group separator and File Separator) in request message. I need to compare complete request text in the VS. I used Request Data manager and tried to create request body as argument, but it is giving me error in VSI as Character reference "" is an invalid XML character.
Can you please help me with what would be best data protocol to handle this scenario?
Please let me know if any further information is required.
Thanks
Ekta