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 Thu, 09/23/2010 - 07:30 by Saravana Peruma...
Web service allows for inter-operable machine to machine communication. In this article let's learn how to quickly build a simple web service using Apache CXF,Spring 2.5.6 and Maven
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 Fri, 07/17/2009 - 15:53 by Saravana Peruma...
Representational State Transfer (REST) is a simple way to expose and consume resources; predominantly over http. This makes it easy to integrate with consumers of those resources.
Recent comments
14 weeks 6 days ago
18 weeks 1 day ago
32 weeks 5 days ago
35 weeks 13 hours ago
43 weeks 4 days ago
1 year 22 weeks ago
1 year 50 weeks ago
1 year 51 weeks ago