Results 1 to 2 of 2
- 05-11-2011, 03:19 PM #1
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
Suppressing soap header in Axis2 client
Hi,
I am having to use an ancient webservice, that for some reason don't accept soap headers and its too old to be updated.
It does accept the rest of the soap envelope, so I wonder if someone knows if there is a way to suppress just the header.
Axis seems to be generating it no matter what I do. There is no mention of soap header in the wsdl and I have tried the axis handlers, but my handler seem to be getting called too early.
I am using Axis2-1.5.1
Anyone have an idea how to solve this?
Mons
- 05-12-2011, 01:16 PM #2
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
Hi,
Just to say, I managed to fix it in the end.
I did it by creating my own Axis Handler (extending AbstractHandler). The trouble was to find the correct phase to attach it to (in the axis.xml file). I was sure it should be in the MessageOut phase, but the header isn't properly generated by then. The final phase seem to be the Security phase (by default at least), so I then attached my handler there.
Did a simple .discard() call on the header, and finally its gone!
Mons:D
Similar Threads
-
async client with Soap Header (jax-wsi 2.0)
By micpie in forum Advanced JavaReplies: 0Last Post: 01-25-2011, 01:36 PM -
How to bind soap header using jax-rpc
By jadeite100 in forum XMLReplies: 0Last Post: 12-05-2010, 06:17 PM -
problem when generating MIME header of a SOAP packet using SAAJ
By kumar.jyotish@gmail.com in forum Advanced JavaReplies: 1Last Post: 10-18-2010, 05:03 PM -
Multiple <wsse:Security> entry in SOAP 1.1 header
By javaduke in forum Advanced JavaReplies: 0Last Post: 08-09-2010, 03:27 PM -
Adding WS Addressing to SOAP header - ACK!
By themdg in forum New To JavaReplies: 3Last Post: 08-06-2010, 11:16 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks