Securing WebServices using Username / Password mechanism

Security is an important aspect of your application design. When the web services are deployed and accessed, you might like to restrict its accesses to particular set of users/ groups or any users of a particular role. Hence we specify the policies for the application  webservice in this case at

Continue reading »

Creating stand alone WebService Client from WSDL

The below post provides an implementation of a Java stand alone client for a sample Java WebService.  All you need to know is the URL to its public contract file, or WSDL. Per-Requisites: A WSDL file, describing the WebService deployed on the Server. You can refer the below link to

Continue reading »

WebService by Bottom Up approach using ant script

The JAX-WS allows you to implement a simple java class as a webservice by exposing its public methods as webservice operations. There are two programming approaches to develop a WebService.   1. Code-First This is a bottom-up, implementation-first strategy where we write the Java class and the data POJOs representing the

Continue reading »

WebServices in WebLogic

Web services are de facto standards in today’s internet world. They use XML-based standards and transport protocols to exchange data with clients. The below post gives a brief understanding of the webservices in WebLogic Service. Before moving on with a sample WebServer demonstration, lets understand the structure of the WebLogic

Continue reading »

Securing Webservices using BASIC Authentication on Weblogic Server.

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”}), } ) @WebService public class TestBasic

Continue reading »