Relative Content

Tag Archive for xmlwiremockstubbingwiremock-standalonewiremock-record

Fetching attribute value from an xml request in wiremock and sending it as a webhook giving error-> [ERROR: null is not valid XML]

I’m working with an XML body for an API request, and I need to extract an attribute to send via a webhook. I’ve successfully extracted the attribute and included it in the API response(which is reflecting all fine). However, when I try to use it in the webhook’s serveEventListeners, I encounter an error: attribute=”[ERROR: null is not valid XML]”.
Could anyone advise me on how to resolve this?