Closed srivi1225 closed 7 years ago
Hello,
You can use this issue to solve your problem) https://github.com/opentable/wiremock-body-transformer/issues/10
the xmlMapper will ignore the "soap:" ....
So the true object to be reached is:
$(Envelope.Body.....
And can you try with and without <?xml version="1.0"?>
?)
Hi,
I tried like <xml>$(Envelope.Body.PutMessage.payload.content.Process.apparea.Sender.Component.value)</xml>
But i am getting null
also i am not adding <root>
tag.
Could you please suggest me what i am doing wrong here.
Hi @srivi1225,
In your case root tag is soap:Envelope, so you should start your path from Header or Body tag. Hope Body.PutMessage.payload.content.Process.apparea.Sender.Component.value will work fine.
Hi @KRoLer
That worked like a charm. thanks a lot.
also i have one query regarding the wiremock stuff
in the above question i have the request and response right. instead of getting the response can i send that as input to another soap service??.
Please help me with your inputs.
Thank you
Thanks @KRoLer for the help. @srivi1225 To my understanding, it is not in the intention of the wiremock platform to be able to pass on requests to external services. And it wasn't the intention of this wiremock-body-transformer to do so either. But since the wiremock project is opensource and extensible, I'm sure some type of request passthrough transformer could be written for it.
@srivi1225 Looks like this ticket has been resolved so I'll close it now.
@tranhungt @KRoLer @okondrashin @stevenschlansker @srivi1225 How to parse for the value of below soap request?
Hi,
I am new to wiremock and wiremock-body-transformer i have a soap request(namespaced) for which i am using wiremock. my response should be dynamic . Response has to be changed based on the request data. i am providing the sample request and response below.
response should be something like
i tried with the below xml
and got the response like
it is working fine
if i have namespaces in the requst xml and not enclose in
"<root>"
or if it find"<soap>"
in the request xml it is not working.Can you please guide me how to transform without
"<root>"
and for the namespaced soap request.