axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kishanthan Thangarajah <>
Subject Re: Handling No SOAP Header in Response
Date Mon, 11 Feb 2013 19:11:39 GMT
On Wed, Feb 6, 2013 at 10:56 PM, Rostom A <> 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.


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(
>     at
> org.apache.rampart.handler.RampartReceiver.invoke(
>     at org.apache.axis2.engine.Phase.invokeHandler(
> 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

View raw message