Forum Discussion
avidCoder
Super Contributor
You need to use below approach:-
def resultRespXML = new File("C:\\Users\\Administrator\\Desktop\\Temp\\Test\\mockResponses\\Resp_0000202130123310_0057076200.xml")
log.info resultRespXML.text
This will print the xml details.
wichitk
6 years agoOccasional Contributor
Hi avidCoder ,
I saw the XML detail when I printed log.info but It stills doesn't show the XML as log.info to the response message.
Regards,
Dan
- avidCoder6 years agoSuper Contributor
is it possible to share .xml here? I am able to see the xml details when I used the code I gave you.
- wichitk6 years agoOccasional Contributor
Hi avidCoder ,
Sorry for the late reply.
For share XML, I can't share it for you because it has confidential company data.
So, Do you have the example that you can be shared to me?
I just need to read the XML file and use it responsibly when the request calls it.
I followed the topic below:
https://www.soapui.org/soap-mocking/creating-dynamic-mockservices.html
No.7. Using files in a mock response
Regards,
Dan
Related Content
- 3 years ago