Forum Discussion
richie
Community Hero
Hey Admins,
I think i've found a fix for this.
I will post later, however, forgive me but im gonna ask the question again just to be sure. You want the payload from the soapbody but from the request NOT the response returned from the mock service? How are you building the request body initially? I'm just wondering why you want request when youre building the request body....??
Ta
Rich
I think i've found a fix for this.
I will post later, however, forgive me but im gonna ask the question again just to be sure. You want the payload from the soapbody but from the request NOT the response returned from the mock service? How are you building the request body initially? I'm just wondering why you want request when youre building the request body....??
Ta
Rich
Admins
4 years agoOccasional 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.
- richie4 years agoCommunity HeroHey 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- 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
- 2 days agoruchisingh