Request and Response from Published SOAP Webservice through IContext API (new in 7.21)

2
In the release notes of 7.21 the following is stated In Java actions inside published services (REST, web service, and OData), you now have access to the request and response via the IContext API   Does this mean I can now see the full request that is used to access my published webservices? I have been trying to reach the RuntimeRequest object by getRuntimeRequest. I have not been able to find the request within this object. Is this something that is possible? And if so, how would the java action look like, as it seems to me that it should be a relatively simple java action, but I can't seem to figure out how to construct this
asked
1 answers
0

Yes, since 7.21, you can use context().getRuntimeRequest() in custom java actions in your published web services.

You could do something like

context().getRuntimeRequest().get().getHeader("Content-Type")

 

answered