Home » Tag Archives: SOAP

Tag Archives: SOAP

JAX-WS Hibernate Example

In this example, we feature a comprehensive article on JAX-WS Hibernate. We will demonstrate how to create a SOAP-based web service that uses Hibernate to read data from a database. 1. Introduction Java API for XML Web Services (JAX-WS) is a technology for developing SOAP-based web services and clients. The API includes annotations for defining web service endpoints, service implementation beans, ...

Read More »

Differences Between REST and SOAP APIs

This article discusses the differences between REST and Soap APIs. Therefore, after reading these articles, readers will probably understand why, when and how any of these two APIs are used to develop these APIs. The commonest and most popular keyword is Web Services in the area of Web Development. Herein, we first try to understand what web services are, move ...

Read More »

JAX-WS Web Service Example

In this example we shall learn implementing JAX-WS Web Service. JAX-WS are the API’s provided by Java for implementing Web Service. Here, we shall start by learning what web services are, their architecture, followed by implementation of server and client. We shall also learn the different variants of XML Web Service and the WSDL file which is the contract that ...

Read More »

JAX-WS Client Example

Hosting a web service is of no use until it becomes usable by a client. In this example we shall learn how to write JAX-WS client for a SOAP web service. Writing JAX-WS Client is easy. But we shall start our example by first creating a web service and then writing a client for the same. 1. Writing server for ...

Read More »

JAX-WS Annotations Example

In this example we shall learn some important JAX-WS annotations provided by Java. To understand this tutorial, following is the prerequisite knowledge required: Basic knowledge of how to use annotations Basic SOAP Architecture Table Of Contents 1. JAX-WS annotations 1.1 @WebService 1.2 @SoapBinding 1.3 @WebMethod 1.4 @WebResult 1.5 @WebServiceClient 1.6 @RequestWrapper 1.7 @ResponseWrapper 1.8 @Oneway 1.9 @HandlerChain 2. Directory structure ...

Read More »

JAX-WS Endpoint Example

In this example we shall see how to use JAX-WS Endpoint. Literally talking about web service endpoint, it is a resource that is to be referred and to which web service message should be addressed. This endpoint can either be in published or unpublished state and JAX-WS’s Endpoint class is used to achieve this purpose. Endpoint class has 2 important methods ...

Read More »

JAX-WS SOAP Handler Example

In this example we are going to see how to Use SOAP Handler to intercept SOAP messages form the client – server communication. A SOAP handler can also change the SOAP messages from/to client/server. In this example we are going to create a Handler in the Client Side that will add a header to the SOAP message containing a random ...

Read More »