web service code first

Developing a CreditCardservice and Deploying in Tomcat Create a directory structure Axis2Example for our Credit Card Validation Web Service as shown below in Figure 1. Figure 1. Axis2Example Project Directory Structure Create a CheckSEI.java interface with within the package com.ibm.axis2.ccheck as shown below. Listing 1. CheckSEI.java package com.ibm.axis2.ccheck; import javax.jws.WebService; @WebService (name="CheckCard", targetNamespace="http://ccheck.axis2.ibm.com") public interface […]

Select TestClient.java and Run As > Java Application (Make sure Tomcat is running). After running the TestClient, you will be prompted to enter your Credit card Number in the console as shown below: (Type your Number for example 4111111111111111 and then Press ENTER to get valid input and valid vendor) (Type your Number for example 5111111111111111 and then […]