Forum Discussion

cbarath1986's avatar
cbarath1986
New Contributor
12 years ago

To block the request and write to a file

Hi,

I'm very new to soap ui and i recently got soapui pro. And i need to write a script or handle to block the request and write the request to a local file through soap ui pro. The condition is that the request shouldn't be submitted. Please help me on this.


Thanks in Advance,
Barath
  • i have written the script to write the request to a file. But, i want to stop the request before it fires and at the same time the request to be written to a file.

    i have tried filter request handler,but it filter the request and i got 0-byte file as writtened. Please help me how to stop the request from firing and at the same time, the request should be written to a file.

    Script used

    def response = context.requestContent
    def f = new File("C:\\responses\\IA1_request.xml")
    f.write(response, "UTF-8")