Skip to main content

Making Use Of Message Context In JAX-WS

Posted by ramapulavarthi on April 22, 2006 at 12:53 PM PDT

Sometimes, Invoking Web Services require exchange of additional information or metadata. This metadata forms the context of message exchange. Few of the common questions I hear while creating Web Services using JAX-WS are, how do I convey this metadata with other parts of the application and how do I configure the binding to behave in a certain way.

The good thing, JAX-WS has made all this very easy. JAX-WS Specification defines some standard properties to describe the metadata and also provides a standard way to manipulate or exchange such information.

In this article "A Little bit about Message Context in JAX-WS", I briefly describe how such metadata is exchanged between various parts of the application and listed the common usage of the standard properties defined by JAX-WS.
This article shows how you can change some properties to configure the binding and exchange metadata with handlers etc. For example, You can use property SOAPACTION_USE_PROPERTY to control whether soapaction is used in messages sent by the application. It also shows how one access such information in handlers and endpoint implementation.

Your comments are most welcome. If you have any questions post them in JAX-WS 2.0 forum.

Related Topics >>