Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using WS + spring + CXF  RSS feed

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());
AuthService client = (AuthService) factory.create();

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

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
Boost this thread!