my dog learned polymorphism*
The moose likes Web Services and the fly likes using WS + spring + CXF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "using WS + spring + CXF " Watch "using WS + spring + CXF " New topic
Author

using WS + spring + CXF

prasanna pati
Ranch Hand

Joined: Jan 29, 2005
Posts: 46
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 !!
 
GeeCON Prague 2014
 
subject: using WS + spring + CXF