Forum Discussion

Vienyc's avatar
Vienyc
New Contributor
14 years ago

Save mock entry as xml

Hi everyone,

I use soapUI to create mock and I used it with Java.
I need to save the xml i pass to the mock service.

I've take an image to show you what I need (yeah I know, in this example, there is no xml, but my oc4j was not ready to test :p).

Is there any groovyScript/properties to save those xml ? (I mean, automatically, because yeah, I know i can right click/save as )

Thanks a lot,
Best regards,
- Romain.

3 Replies

  • Vienyc's avatar
    Vienyc
    New Contributor
    Or if I can save my result by the SOAP Monitor, it's ok for me

    Thanks,
    Best regards,
    Romain.
  • Hello,

    easy way to accomplish this is available in the Pro version -> you would add event handler that would run Groovy script,
    after mock service receives a request.

    Regards,
    Vladimir
    SmartBear Sweden
  • Vienyc's avatar
    Vienyc
    New Contributor
    Hi,

    Thanks for the answer.

    There is no way to do that without buy the pro version ? Because I can already add GroovyScript to my project, there is a limitation for the event handler in the free version ?