Forum Discussion
Admins
Occasional Contributor
I can confirm I want the Payload inside the SOAP Body for the Request. I have a application that sends the Request to the Mock Service and as part of my Unit Testing I want to compare the Payload with my expected results.
richie
4 years agoCommunity Hero
Hey Admins,
Are you still looking to extract the payload from the soapbody container tag once the request has been submitted?
Apologies, i couldnt find this post to answer. I did put a bit of groovy together (essentially using the replaceAll() method).
If you still need this i'll chuck that groovy together....its not pretty and is just a sequential strip out of the xml content you dont want....but it does do what you asked for.....if i understood correctly!
Ta
Rich
Are you still looking to extract the payload from the soapbody container tag once the request has been submitted?
Apologies, i couldnt find this post to answer. I did put a bit of groovy together (essentially using the replaceAll() method).
If you still need this i'll chuck that groovy together....its not pretty and is just a sequential strip out of the xml content you dont want....but it does do what you asked for.....if i understood correctly!
Ta
Rich
- Admins4 years agoOccasional Contributor
Rich
Yes I am still wanting to extract the Payload from the SOAP Body.
Appreciate if you could provide the groovy code.
Regards
Related Content
Recent Discussions
- 12 hours agoKLWallace
- 7 days agoruchisingh