Re: Handling No SOAP Header in Response

Kishanthan Thangarajah <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAHt68vF0Kk2s5Qx9kUB2nnnS=j0YH1pkF=rEoB0h0aW8QfZofw@mail.gmail.com>
On Wed, Feb 6, 2013 at 10:56 PM, Rostom A <[email protected]> wrote:

> Is there a way to instruct Rampart and/or my Axis2 ADB built client stub
> to not look for a SOAP header in the response message?
>

AFAIK this is not possible. Once rampart is engaged, it will expect
the response also to have the relevant headers. But this [1] will be
helpful in this case, which I haven't tried before. The approach mentioned
(avoiding rampart on outflow) in there is for server side. So on
the client side, you need to think of the inflow.

Thanks,
Kishanthan.
[1]
http://blog.rampartfaq.com/2009/11/how-to-generate-non-secure-response-to.html


I keep getting the following error when I call the method on the stub to
> send a request to the service:
>
> org.apache.axis2.AxisFault: SOAP header missing
>     at
> org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
>     at
> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
>     at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>
> The response does not have a SOAP header by design.  Looking at the Axis2
> debug logs I see that the SOAP response comes back fine from the server,
> but my call never returns and instead throws the above exception.
>
> I'm using Axis2 1.6.2 and Rampart 1.6.2.
>
> Any help would be appreciated.
>
> --rostom
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.