Forum Discussion
JHoreczky
14 years agoContributor
Thanks Ole, for the update!
Unfortunately I was not able to find javadoc for the SoapUI Pro API, so mostly through trial and error I ended up using the following scriptlet to retrieve the request details. I tried using both REST and HTTP type of request - but they both gave the same result:
Trigger type: RequestFilter.filterRequest
=====
if( context == null ) {
log.info "returning context is ******* NULL"
return
}
log.info "[" + context.httpResponseProperties + "]"
=====
Interestingly the above will actually return the HTTP Request Query params - what I needed.
Thu Jul 05 16:24:53 MDT 2012:INFO: [[Street:theStreet, HouseNumberAndSuffix:123, Province:theProvince, City:theCity]]
Below is how the HTTP Post was logged by SoapUI :
Thu Jul 05 16:21:27 MDT 2012:DEBUG:>> "POST /theServlet?HouseNumberAndSuffix=123&Street=theStreet&City=theCity&Province=theProvince HTTP/1.1[\r][\n]"
My question, is this the proper way to get the request details?
Thanks,
Joseph H.
Unfortunately I was not able to find javadoc for the SoapUI Pro API, so mostly through trial and error I ended up using the following scriptlet to retrieve the request details. I tried using both REST and HTTP type of request - but they both gave the same result:
Trigger type: RequestFilter.filterRequest
=====
if( context == null ) {
log.info "returning context is ******* NULL"
return
}
log.info "[" + context.httpResponseProperties + "]"
=====
Interestingly the above will actually return the HTTP Request Query params - what I needed.
Thu Jul 05 16:24:53 MDT 2012:INFO: [[Street:theStreet, HouseNumberAndSuffix:123, Province:theProvince, City:theCity]]
Below is how the HTTP Post was logged by SoapUI :
Thu Jul 05 16:21:27 MDT 2012:DEBUG:>> "POST /theServlet?HouseNumberAndSuffix=123&Street=theStreet&City=theCity&Province=theProvince HTTP/1.1[\r][\n]"
My question, is this the proper way to get the request details?
Thanks,
Joseph H.