To secure the Webservice to use Basic Authentication, we just need to use the @RolesAllowed annotation. No change needs to be done in the deployment descriptor. Here is a sample JWS. package demo; import javax.jws.*; import weblogic.jws.security.RolesAllowed;import weblogic.jws.security.SecurityRole; @RolesAllowed ( { @SecurityRole (role=”Adminstrators”,mapToPrincipals{“weblogic”}),}) @WebServicepublic class TestBasic { @WebMethodpublic void hello(String test) {System.out.println(“print”+test);}}
-
Meta
Tags
active directory admin console ant script apache basic authentication deployment error page FileNet find weblogic jars FormBase auth High CPU Jbooss JBoss jdbc JMS jms issues JMX JNDI jrockit Kerberos LDAP Linux Mbean Monitoring multicast Out of Memory proxy Queue remote administration securing queue Security Silent Install Single Singon Siteminder SSL Topic Transactions Twiddle UDD weblogic Weblogic WebLogic SNMP WebService Webservices Websphere wlstRecent Comments
- Administrator on Deployment Issues On Weblogic Server
- adamlim on Resetting Admin UserName And Password in Weblogic Server 11g
- charan on Deployment Issues On Weblogic Server
- Administrator on Configuring IIS with Weblogic Server
- Prasanth on Custom Identity Asserter for Weblogic Server