Results 1 to 2 of 2
  1. #1
    MonsM is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Question 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

  2. #2
    MonsM is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default

    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

  1. async client with Soap Header (jax-wsi 2.0)
    By micpie in forum Advanced Java
    Replies: 0
    Last Post: 01-25-2011, 02:36 PM
  2. How to bind soap header using jax-rpc
    By jadeite100 in forum XML
    Replies: 0
    Last Post: 12-05-2010, 07:17 PM
  3. problem when generating MIME header of a SOAP packet using SAAJ
    By kumar.jyotish@gmail.com in forum Advanced Java
    Replies: 1
    Last Post: 10-18-2010, 06:03 PM
  4. Multiple <wsse:Security> entry in SOAP 1.1 header
    By javaduke in forum Advanced Java
    Replies: 0
    Last Post: 08-09-2010, 04:27 PM
  5. Adding WS Addressing to SOAP header - ACK!
    By themdg in forum New To Java
    Replies: 3
    Last Post: 08-07-2010, 12:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •