Forum Discussion

vpnkumar's avatar
vpnkumar
Occasional Contributor
5 years ago

Unable to fetch Raw request for further changes in Soap Ui Pro

My Solution involves below steps Load external Data Source Create some dynamic properties using groovy and update them in properties container In Rest request 1 update all the values either from e...
  • HimanshuTayal's avatar
    5 years ago

    vpnkumar :

     

    Have you tried with context :

     

    log.info "This is from events :: "+context.rawRequest

     

    Hope it will help you out. 

  • vpnkumar's avatar
    vpnkumar
    5 years ago

    Thanks Himanshu, along with the listed method this could be achieved using below code in RequestFilter.filterRequest event def requestContent = (String) context.getProperty(BaseHttpRequestTransport.REQUEST_CONTENT)
    log.info("Request Body BEFORE " + requestContent)