This short post publishes a Restful Web Service and then tests @Put and @Post methods using rest-shell. Create the Service Follow the instructions from my previous post: Produce Json From Restful CXF Web Service. Once you have done this, modify the CustomerService as follows: This provides methods to Put and Get data. Test the Service... Continue Reading →
A great tool for consuming and testing restful web services is rest-shell. In an writing these notes for OS X on a Mac. The instructions I am following come from here. Install HomeBrew Open a terminal window and enter the following command: This will download and install Homebrew. Next, enter; For me, this flagged that my... Continue Reading →
In this post, we are going to create a simple Restful web service that returns json. This post follows on from Create Restful Web Services with JBoss, Maven, Apache CXF and Spring, but is also self-contained. Create the Project Using Eclipse / JBoss Developer Studio New -> Maven Projectmaven-archetype-webappGroup Id: com.skills421.webservicesArtifact Id: SimpleCXFRest The default project structure... Continue Reading →
In this short post, we are going to create a simple restful web service using Apache CXF, Spring, and JBoss AS7. Create the Project Using Eclipse / JBoss Developer Studio New -> Maven Projectmaven-archetype-webappGroup Id: com.skills421.webservicesArtifact Id: SimpleCXFRest The default project structure will be created as follows: Add Missing Folders and Delete index.jsp Right-click src/mainNew -> Folder... Continue Reading →
In this post we will update our client to use Camel to forward our request and response to the exposed web service. We already included all the dependencies we needed in Part2. So all that is required to is write the code: RequestClientUsingCamel RequestClientUsingCamel and here's the output..
In Part 1 we created and deployed a Web Servlet that invoked the Rule Engine to fire the rules. In Part 2 we will create a Web Service that will pass a Request to the Rule Engine and return a Response. Each event will in turn encapsulate any data that is to be returned. The... Continue Reading →
Background One of the big problems with technology nowadays is how much we use without fully understanding what is going on in the background - so the objective of these posts is to take you step by step through the technology with a better understanding of what is going on. Overview In this post we... Continue Reading →