Forum Discussion

aseshan's avatar
aseshan
New Contributor
16 years ago

How to retrieve context from HTTP request

Hello,

I am new the groovy util and am using SOAPUI for first time.

I am facing a problem in retrieving the request context. I am getting a HTTP request to my mock response.
I need to retrieve the context and XMLholder from HTTP request. I would like to know how to retrieve the context.

Please help me.

1 Reply

  • hi aseshan,
        In order to retrieve the context and XMLholder from http request, you can use the following piece of code:

    def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
    holder = groovyUtils.getXmlHolder( requestName+"#Request"  );

    Hope this helps!

    regards
    depeche