Guest User

Untitled

a guest
Oct 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public static void main(String[] args) {
  2. try{
  3. URL url=new URL("http://localhost:8888/ws/employee?wsdl");
  4. QName qName=new QName("http://webserices.soap.org/", "EmployeeOperationImplService");
  5. Service service=Service.create(url,qName);
  6.  
  7. EmployeeOperation employeeOperation=service.getPort(EmployeeOperation.class);
  8. Employee employee=new Employee("Sachin");
  9. employeeOperation.saveEmployee(employee);
  10. }catch(Exception ex){
  11. ex.printStackTrace();
  12. }
  13. }
Add Comment
Please, Sign In to add comment