Image
image
image
image


Accessing Web Services from JSF web client.

In the bellow code sample I used a JSF MVC frame work to develop a web client. This JSF based web client interacts with the end user.This web client displays a Credit Line Application to the user.Reads the data from creditLineApplication.jsp .Validates the user data.I used a custom validator for validating emails using regular expressions.After completing the validations the data is passed on to the baking bean creditLineApplication.java.

The baking bean is accessing the web service through CreditLineApplicationBO. Here i separated the presentation logic from Business logic through BO pattern. The baking bean sends validated data to the CreditLineApplicationBO and the creditLineAuthorization() method of CreditLineApplicationBO calls the creditCard Processing web service.

The creditCardProcessing web service returns approvable credit line based on creditScore returned by the CreditHistoryCheckUp web service.

Here I am just displaying the client part of the code for the Web Services please see my Simple JAX-wS web service code sample and,accessing web service from other web service code sample

Code for JSF Wen Client.

Source Code :

 

Baking Bean: CreditLineApplication.java

jsf-config.xml

 

Soruce Code :

 

 








For technical support please contact me at

murali@javamission.com




image


image
image