File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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());
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 !!
I agree. Here's the link:
subject: using WS + spring + CXF
It's not a secret anymore!