This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Axis2- enable security using Rampart

 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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
 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does your wsdl has some policy element saying that it expect time stamp? Can you post your wsdl?
 
Anjali S Sharma
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

 
I like tacos! And this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic