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.
Subscribe to:
Post Comments (Atom)
天氣涼了~要注意身體喔@~@............................................................
ReplyDeleteHabit is a second nature...................................................
ReplyDelete文章不求沽名釣譽,率性就是真的..................................................................
ReplyDelete永遠支持你呀!!HO!!HO!!HO!!HO!!~~..................................................................
ReplyDelete拒絕冒險和成長的人,終將被生命的潮流陶汰。..................................................
ReplyDelete人生中最好的禮物就是屬於自己的一部份............................................................
ReplyDeletehi,
ReplyDeleteI 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成熟,就是有能力適應生活中的模糊。.. ... ............................................................
ReplyDelete這麼優的部落格,不踩一下不開心..................................................................
ReplyDelete喜歡自己的另一層意義是「接納自己」。..................................................
ReplyDelete期待新的內容 感謝你................................................
ReplyDeleteStriking Blog! I liked your piece of writing, especially its title.
ReplyDeleteprofessional web design melbourne
A website is very important if you are attempting to establish a global presence in the market.
ReplyDeleteWebsite Design Melbourne
Wow what a nice post. I am impressed from it.
ReplyDeleteThanks for more sharing.......
Foot Doctor Midtown
Wow what a great post.I am felling glad to come upon here.
ReplyDeleteThanks for more sharing...........
Bankruptcy Lawyers Chicago
Wow what a nice post.I am impressed and fell glad to come upon here.
ReplyDeleteThanks for more sharing........
George-Marchelos/100000475523409