Home » JAX-WS Client

Tag Archives: JAX-WS Client

JAX-WS Change Endpoint Example

In this example, we will demonstrate how to change the service endpoint in a Java web service client application. 1. Introduction A web service (which is described in a WSDL file) can have one or more endpoints.  A web service endpoint is a URL used to locate and access a web service.  The endpoint is derived from the port and ...

Read More »

Jax-Ws AsyncHandler Example

In this example, we will show you how to implement an asynchronous SOAP web service and client using the AsyncHandler callback handler. 1. Introduction There are two ways to invoke a web service, synchronously and asynchronously. When invoking a web service synchronously, the client must wait for the response before resuming its work. When invoking a web service asynchronously, the ...

Read More »

JAX-WS Client Basic Authentication Example

1. Introduction In this example, we will demonstrate how to add basic authentication to a JAX-WS web service and client. But before we begin, let’s get some background. Table Of Contents 1. Introduction 1.1 SOA 1.2 Web Services 1.3 JAX-WS 1.4 Apache CXF 1.5 WS-Security 1.6 UsernameToken Profile 1.7 Tools Used in this Example 2. JAX-WS Basic Authentication Example 2.1 ...

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 »