Extract RAW swift message in XML tags for IBM Native protocol.
search cancel

Extract RAW swift message in XML tags for IBM Native protocol.

book

Article ID: 398977

calendar_today

Updated On: 05-27-2025

Products

Service Virtualization

Issue/Introduction

Trying to create VS with  XML data and SWIFT messages as a payload for  IBM Native Protocol.

 example: 

<CWPayLoad>
<DeliveryFormat>QQ</DeliveryFormat>
<DestinationGCN>SWFFP</DestinationGCN>
<OriginatorGCN>VNF</OriginatorGCN>
<PossDupInd>PD</PossDupInd>{1:F01CITIKWK0XXXX0000000000}{2:I103TRXXXXN}{3:{108:22428115033333P00}{111:001}{121:f324999-96e1-4926-89c5-942614999905}}
</CWPayLoad>

Also want to extract the RAW Swift messages as arguments for match validation.  

Environment

All supported DEVTEST versions. 

Resolution

To parse XML and SWIFT , use the following DPH's :

1. Generic XML Payload parser

2. SWIFT DPH. 

Using Generic XML payload parser,  added Xpaths for each XML argument  and also added the entire  SWIFT block as a Request Body. 

Both XML and Swift arguments are parsed in the VSI Request Body.