Month 02

FastInfoset Using CXF

FastInfoset Using CXF

FastInfoset Using CXF explains about How to use FastInfoset encoding with CXF framework

FastInfoset is a binary encoding for an XML Information, It incorporated with a more efficiant serialization mechanism than text based

Using FastInfoset encoding is a much better solution than gzip encoding becuase FastInfoset optimize both size and performance, while gzip only deals with size

You can also see the GZIP Using CXF if you need to configure gzip compression

You can see the below example, which is demonstrating the usage of FastInfoset Using CXF

RESTful Java Client Using HttpClient

RESTful Java Client Using HttpClient

RESTful Java Client Using HttpClient Example explains step by step details of How to create a RESTful java client using Apache HttpClient With Apache CXF

For Creating RESTful Java Client, We are using Apache HttpClient, which will call java.net.HttpURLConnection internally

Here we showing an example, of how to invoking GET and POST method of an exposed restful service (ie; GET & POST operations) .

You can also find CXF Restful Client if you need to call restful service without using Apache HttpClient or any third party libraries

You can see the below example, which is demonstrating a CXF REST Java Client Using HttpClient

CXF Restful Client

CXF Restful Client

CXF Restful Client Example explains step by step details of How To Create a CXF REST Client from a deployed Apache CXF Restful service

For Creating Apache CXF Restful Client, We are using java.net.HttpURLConnection.

By using HttpURLConnection, we are invoking the correct exposed methods / operations of restful service.

For publishing a Restful service, you can follow this tutorial CXF Restful Tutorial. This client is based on mentioned Tutorial

You can also find RESTful Java Client Using HttpClient if you need to invoke restful service using Apache HttpClient

You can see the below example, which is demonstrating a CXF REST Client Example

CXF Restful Tutorial

CXF Restful Tutorial

CXF Restful Tutorial explains step by step details of Creating / Developing Java rest Web services using Apache CXF, Spring and Eclipse

JAX-RS is Java API for RESTful Webservices which is very rely upon Representational State Transfer model, you can view JAX-RS specification 

JAX-RS uses annotations for simplifying the development efforts.

Now a days more & more deployment is going based on restful services compare to WSDL Webservices, due to the weights towards the simplicity of configuration

You can see the below example, which is demonstrating How to create a Restful service using CXF