Hi,
My scenario soap, i will like to use wiremock to response xml soap with variables and response dynamic.
for example in mappings:
{
"request": {
"method": "POST",
"url": "/order",
`------capture` variable id of request `xml??????`
},
"response": {
"status": 200,
"bodyFileName":/order/id.xml, # ------response xml of variable id------
"headers": {
"Content-Type": "text/xml"
}
}
}
example request:
<customer>
<id>5959</id>
</customer>
example response:
----5959.xml
<customer>
<id>5959</id>
<name>XPTO</name>
</customer>
</customer>
Can i use this scenario in wiremock, capturing id of customer and response this id of customer to xml?
Thanks!
You could also use this if you're still on version 1.x: https://github.com/adamyork/wiremock-velocity-transformer