axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kevinlampert <>
Subject Re: org.apache.axis2.AxisFault: SOAP header missing
Date Wed, 04 Mar 2009 22:48:28 GMT

I solved my problem.

I removed the <sp:IncludeTimestamp/> from the policy.xml. Apparently, this
inclusion causes the client to look for a security header in the server
response. Once I removed it, the client retrieved my data just fine.

kevinlampert wrote:
> I am writing a java client to consume a web service that I have no control
> of. The web service requires a username and password for authentication.
> I have configured Rampart to place the data in the security header and can
> capture the request being sent and see the correct header information. I
> have the callback handler working correctly.
> If I submit just the SOAP message (I captured using tcpmon) using XMLSpy,
> the message works correctly and the response from the web service appears
> correct.
> My java client, however, throws an exception:
> Exception: org.apache.axis2.AxisFault: SOAP header missing
> org.apache.axis2.AxisFault: SOAP header missing
>         at
> org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFa
> ult(
>         at
> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.jav
> a:99)
>         at org.apache.axis2.engine.Phase.invoke(
>         at org.apache.axis2.engine.AxisEngine.invoke(
>         at org.apache.axis2.engine.AxisEngine.receive(
>         at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
>         at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
>         at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
> My question is:
> Is there something to tell Rampart that the security header is ONLY
> required for client outbound messages and that inbound messages to client
> WILL NOT have a security header?
> Other ideas, or something I am missing?
> I can add any additional information you may require.
> Thanks!

View this message in context:
Sent from the Axis - User mailing list archive at

View raw message