Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- try{
- URL url=new URL("http://localhost:8888/ws/employee?wsdl");
- QName qName=new QName("http://webserices.soap.org/", "EmployeeOperationImplService");
- Service service=Service.create(url,qName);
- EmployeeOperation employeeOperation=service.getPort(EmployeeOperation.class);
- Employee employee=new Employee("Sachin");
- employeeOperation.saveEmployee(employee);
- }catch(Exception ex){
- ex.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment