Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using WS + spring + CXF

 
prasanna pati
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making an web service using spring framework and CXF . I made a client code and an application . starting on the server , I can generate the wsdl file but when I am running the client code it is kicking me with lots of error messages . my client code is a simple POJO its like :

public static void main(String args[]) throws Exception {

JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();

factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
factory.setServiceClass(AuthService.class);
factory.setAddress("http://localhost:8080/WebApplication5/services/swAuth");
AuthService client = (AuthService) factory.create();

Employee employee = client.getEmployee("39528");
System.out.println("Server said: " + employee.getLastName() + ", " + employee.getFirstName());
System.exit(0);


Now I think I have included all the jar files . why error is occuring here ? no built failed , error codes generating when I am running it and its at the line :Employee employee = client.getEmployee("39528");

hoping someone may help !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic