Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It looks as if the error isn't with the outbound request, but with handling the response. The response doesn't have a security header and when we're trying to unencrypt it, an exception occurs.</p> <p>I need to somehow change my Rampart configuration to only do outbound security, not inbound</p> <p>I'll report back :)</p> <hr> <p>Ok the problem was that once Rampart is engaged, it expects the response to have the same security header. The way I solved the problem was by removing the handler to the Inflow security in the Rampart.mar file.</p> <p>I'm not sure if this is the best fix, but it worked for us.</p> <p>To remove the inflow handler: Unpack the rampart.mar file</p> <p>Comment out the Inflow section</p> <p>Zip up the META_INF folder. Then rename the .zip file to be .mar</p> <p>Now when you use this as there are no handlers defined for inflow, it will just use the standard Axis2 response handler.</p> <p>I guess if you had several projects using Rampart where some had the security header in the response and some didn't you would need a different approach.</p> <hr> <p>Another approach is detailed here. It's probably a better approach :</p> <p><a href="http://blog.rampartfaq.com/2009/11/how-to-generate-non-secure-response-to.html" rel="nofollow">http://blog.rampartfaq.com/2009/11/how-to-generate-non-secure-response-to.html</a></p> <p>Exception:</p> <blockquote> <p>org.apache.axis2.AxisFault: Missing wsse:Security header in request 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.invoke(Phase.java:318) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload