Forums Register Login

Axis2- enable security using Rampart

+Pie Number of slices to send: Send


I am following this article to enable security (using Rampart) on my Axis2 webservice.

I have installed Rampart and also engaged it using the admin UI

Now this article instructs to add the following to services.xml

<parameter name="InflowSecurity">
<action>
<items>Timestamp</items>
</action>
</parameter>

<parameter name="OutflowSecurity">
<action>
<items>Timestamp</items>
</action>
</parameter>

At this point the client (soapUI in this case), is not sending any headers while calling the service. So the service should throw a fault.

But in my case, when I call the service using soapUI (and supplying no headers) it does not throw any error.

It seems that Rampart is not getting engaged.

Can you please guide me as to why this could be happening?

thank you
+Pie Number of slices to send: Send
Does your wsdl has some policy element saying that it expect time stamp? Can you post your wsdl?
+Pie Number of slices to send: Send
 

shivendra tripathi wrote:Does your wsdl has some policy element saying that it expect time stamp? Can you post your wsdl?



For headers do I need to update my WSDL as well?

Here is my WSDL

What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1528 times.
Similar Threads
Dynamically setting the username/password with Rampart.
rampart problem with oc4j
Axis2, client handler not getting called
WSHandler: cannot create instance of password callback
SOAP Header missing using Rampart w/ Axis2 Generated Stub
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:09:16.