axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: can I use use rampart with JAX-WS style webservice
Date Thu, 08 May 2008 11:42:44 GMT
thanks for your answer.
Unfortunately it does not seem to do the trick.
I am getting the following error.

[ERROR] com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 32 counts of IllegalAnnotationExceptions
org.apache.axiom.attachments.lifecycle.LifecycleManager is an interface, and JAXB can't handle

I am beginning to think that it is not possible to engage Rampart with annotations.

-----Urspr√ľngliche Nachricht-----
Von: Ruchith Fernando [] 
Gesendet: Dienstag, 6. Mai 2008 09:57
Betreff: Re: can I use use rampart with JAX-WS style webservice

I haven't tried this but I think the following solution will work:

- first implement lifecycle management on the service [1]
- now in the "init" method you can get hold of the AxisService instance and then you can engage
the rampart module on it.
- Finally you can load the policy from a file as an org.apache.neethi.Policy object and add
that to the AxisService instance as well.

Now you have a WS-Sec enabled service :-)



p.s. You can also try WSO2 WSAS [2] and try the WS-Sec support available as well!

On Wed, Apr 30, 2008 at 8:39 PM,  <> wrote:
> Hi
> I have a web service developed using jax-ws style annotations. So it 
> does not require a services.xml, It is deployed to axis2 as jar file 
> under WEB-INF\servicejars directory.
> Now if I want to secure this service using rampart how do I link the 
> policy.xml?
> Where do I add the stuff such as <module ref="rampart"> that one 
> usually adds into services.xml ?
> cheers
> Tezcan


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message