Posted Fri, 09/24/2010 - 18:53 by Saravana Peruma...
Now lets look at the consumer of the Web Service, on our case the junit testcase WebServiceTest.java
-
We already saw the consumers created dynamically using cxf in the Spring configuration, we are just going to use the injected clients directly in the testcase.
-
Posted Fri, 09/24/2010 - 18:39 by Saravana Peruma...
Now that the Web Service interfaces are defined (HelloWorld.java,FileManagement.java), let's look at their implementation details.
Posted Fri, 09/24/2010 - 18:24 by Saravana Peruma...
The File.java is a simple bean that has 2 properties a string and a DataHandler, the DataHandler is used to receive the file contents sent from the consumer of the web service.
Posted Fri, 09/24/2010 - 18:15 by Saravana Peruma...
Lets walk through the java code now, here we basically define the interfaces for our web services and add the implementation for the same as well
-
The HelloWorld.java interface has a one method that takes in a string parameter. Notice the annotations (@WebService to define a web service and @WebParam to define a parameter)
Posted Fri, 09/24/2010 - 07:32 by Saravana Peruma...
Posted Fri, 09/24/2010 - 07:18 by Saravana Peruma...
Now that the application is running, let's walk through the code.
- The web application is wired using the web.xml
Posted Sat, 07/18/2009 - 14:43 by Saravana Peruma...
- The calling html page is a simple page with 2 inputs and a submit button
Posted Sat, 07/18/2009 - 14:17 by Saravana Peruma...
- Most of the configuration is done via annotations itself. The code just does the business logic (i.e to add 2 numbers)
- Path("/number/") annotation specifies the relative URI path that this class will serve is /number/
Posted Sat, 07/18/2009 - 14:12 by Saravana Peruma...
- The spring configuration is a simple one line to read all the configuration settings through annotations

Posted Sat, 07/18/2009 - 10:09 by Saravana Peruma...
Now that the application is running, let's walk through the code.
Recent comments
17 weeks 1 day ago
20 weeks 3 days ago
35 weeks 11 hours ago
37 weeks 2 days ago
45 weeks 6 days ago
1 year 24 weeks ago
2 years 4 days ago
2 years 1 week ago