Showing posts with label web service. Show all posts
Showing posts with label web service. Show all posts

May 26, 2015

May 24, 2015

Java REST Web Service with XML, JSON and HTML Response

When a client request some REST web service method, usually an HTTP GET request is sent, and within the header, the content-type parameter, that specifies which kind of response is expected and accepted. Here you can see how handle this situation, returning different kind of data based on the requested content-type.

May 23, 2015

Java REST Web Service

REST web services are also known as simple URL services, because they can be requested through the URL parameters with a simple GET HTTP method, which commonly gives as answer a plain-text JSON object. Like for example the Facebook and Twitter APIs. Here you can see how to do a REST web service using the Jersey RI with Eclipse, Maven and Tomcat.

May 22, 2015

Java Web Service Automatic Client Generation with WSImport


If you have access to the WSDL file of a web service, that contains informations like available methods, kind of parameters and what will be returned, then you are able to use the web service. Due to this public and well formed information, it's possible to automate the client generation! And that's the point of the wsimport tool, here you can see how.

May 10, 2015