soap webservice client using jax ws rs

Steps to create webservice client using JAX-WS RI
1) Create Java project using eclipse as shown below snap shot
2) Create the package com.empservice.client
3) Create the EmployeeServiceClient.java
4) Run the wsimport command as below at your project directory
5) G:\work_space\mobile\EmployeeServiceClient\src>wsimport -keep http://localhost:8080/EmployeeService/employee?wsdl
6) After running wsimport command artifacts will generate under src folder
7) Check for any compilation errors
8) Run the EmployeeServiceClient.java to check the response from webservice
   
1) EmployeeServiceClient.java
package com.empservice.client;

import javax.xml.ws.WebServiceRef;

//import com.employee.service.Employee;
import com.employee.service.EmployeeService;
import com.employee.service.EmployeeServiceService;

public class EmployeeServiceClient {

 @WebServiceRef(wsdlLocation = "http://localhost:8080/EmployeeService/employee?wsdl")
 static EmployeeServiceService service = new EmployeeServiceService();

 public static void main(String[] args) {
  try {
   EmployeeService port = service.getEmployeeServicePort();
   String empDetails = port.getEmployeeDetails(1);
   System.out.println(empDetails);
  } catch (Exception e) {
   e.printStackTrace();
  }
 }
}
Web service Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<employee id="1234">
    <name>Jhon</name>
    <salary>0.0</salary>
    <address>
        <city>bangalore</city>
        <zipcode>0</zipcode>
    </address>
</employee>