Hi Jennifer, I hope you are doing well!
I am not sure if DPOD can or cannot do this, but from the DataPower perspective, you could enable Probe and then download all the captured transactions at once. You can configure the Probe Settings (in the MPGW) to capture up to 250 transactions before rolling over.
1. Open the Probes and click in Export Capture:
2. Expand the capture in your file system, part of the content of the selected file contains the transaction details, including incoming payload (under the "wrap" element):
3. Alternatively, if you want to automate extraction of the incoming payloads you could build something like this:
unzip ../service-mpgw.zip > /dev/null 2>&1
unzip mpgw@service-mpgw.zip > /dev/null 2>&1
for i in `find . -name '[0-9]' -type d`; do cd $i; gzip -d 0.xml.gz > /dev/null 2>&1; xpath -e '//transaction-input' 0.xml > /dev/null 2>&1 | grep wrap | gsed "s/</</g" | gsed "s/<wrap>//" | gsed "s,</wrap></transaction-input>,,"; cd ../..; done;
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
<xml>Hi there</xml>
------------------------------
Bruno R Neves
Integration Specialist
IBM
Tampa FL
------------------------------
Original Message:
Sent: Fri October 22, 2021 02:55 PM
From: Jennifer Stipe
Subject: Bulk capture of payloads using DPOD's payload capture
Hello!
Some of our developers wanted to try using DPOD (Datapower Operations Dashboard) to capture payloads for use in creating a comprehensive suite of CI/CD test cases. We know we can capture the payloads for a longer period of time than 5 minutes, but the problem would be actually pulling down those payloads from DPOD. Currently it appears that we can only download the payloads one at a time via the gui. I don't see anything in the rest api documentation that would facilitate the bulk download of those payloads. Is it possible to do this via DPOD?
------------------------------
Jennifer Stipe
------------------------------