Wednesday, July 21, 2010

New JAX-WS Lightweight API Allows Fast Access and Manipulation of SOAP Headers

Background:
SOAP Headers are typically used to pass additional context data to and from SOAP nodes.
JAX-WS provides a SAAJ API rendering of the message that can be queried and manipulated by JAX-WS application handlers.

Problem:
The SAAJ rendering of a message is heavyweight.
The JAX-WS runtime is optimized to stream inbound and outbound messages. Transforming the message into an intermediate SAAJ rendering is inefficient and increases the memory footprint.

Solution:
IBM has defined an alternative lightweight API that can be used to access and manipulate SOAP headers from within a JAX-WS handler.

This API is available in version 7.0.0.5 of the WebSphere Application Server:
PK96816

This API is available in version 6.1.0.27 of the Feature Pack for Web Services:
PK84170

We've documented the ability to set headers on outbound requests here:
instructions for setting SOAP Headers and retrieve SOAP headers here: instructions for accessing SOAP Headers

Example Usage
Here is an example usage.

Interested Parties:
This solution is applicable if your JAX-WS Web service uses large messages and requires high performance and/or low memory footprint.

This solution is also applicable for customers migrating existing JAX-RPC Web services to JAX-WS.

17 comments:

  1. 拒絕冒險和成長的人,終將被生命的潮流陶汰。..................................................

    ReplyDelete
  2. hi,

    I would like to add your blog to our websphere library [http://websphere.gizapage.com]. Let us know, if it is okey for you.

    Thanks

    ReplyDelete
  3. Striking Blog! I liked your piece of writing, especially its title.
    professional web design melbourne

    ReplyDelete
  4. A website is very important if you are attempting to establish a global presence in the market.

    Website Design Melbourne

    ReplyDelete
  5. Wow what a nice post. I am impressed from it.

    Thanks for more sharing.......



    Foot Doctor Midtown

    ReplyDelete
  6. Wow what a great post.I am felling glad to come upon here.

    Thanks for more sharing...........




    Bankruptcy Lawyers Chicago

    ReplyDelete
  7. Wow what a nice post.I am impressed and fell glad to come upon here.

    Thanks for more sharing........



    George-Marchelos/100000475523409

    ReplyDelete