java - Is there any way to implement ws-security in metro via annotations? -


since not want create lot of wsit files enable security (encryption of message , authentication of users) , not want use netbeans use metro plugin there, want ask if there easy way implement ws-security via annotations? or there eclipse plugin besides soap ui, in fact not usefull, create such wsit files?

thanks in advance.

according this post, metro not support ws-policy programmatically. 2009 though, don't know if that's still case.

metro can policy directly wsdl if don't want use wsit files (if have policy in wsdl @ all, is).

this how did in metro-generated service class. loads policy directly wsdl, in classpath, , apply policies in runtime, provided have installed metro in application server , don't have conflicting dependencies in project (this 1 bit of hassle me find, of dependencies had jaxws-rt dependency, may ruin metros policy resolving).

private final static url customerservice_wsdl_location;  static {     customerservice_wsdl_location =         customerservice.class.getclassloader().getresource("customer/customerservice.wsdl"); }  public customerservice(url wsdllocation, qname servicename) {     super(wsdllocation, servicename); } 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -