• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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

 
He's my best friend. Not yours. Mine. You can have this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic