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.
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.
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