We are consuming a web service from our code for which stubs were generated using the JAX-RPC method. The issue that I am facing is that in the SOAP request header an unwanted section of <work:WorkContext> gets added. On the prod server it is eating up the DB space resulting in slower calls. How can I prevent this element from getting added to the request header. AM able to reproduce this problem on my machine as well which is running JDev Studio Edition Version 184.108.40.206.0 and has the integrated web logic server.
Any pointers are greatly appreciated.
I disabled the 'Work Context Propagation Enabled' flag by going to the weblogic console --> DefaultDomain (or whatever domain which has the app) --> Configuration tab --> Web Applications tab. This causes changes to occur in the config.xml for that domain. Restarted the server.
But this did not work.
Any ideas would be of great help.
In addition, to turning off the work-context-propagation-enabled flag in weblogic, also removed the work context programmatically.
- Get workcontext handle.
- Read keys
- Remove keys
Combination of these two has solved the problem.
The following system property was added in WebLogic 10.3.4:
The default value is false. To prevent the WorkArea header from being sent in SOAP messages, set this to true.