beautypg.com

Accessing a rest web service using http get, Contract-first approach – HP Integrity NonStop J-Series User Manual

Page 213

background image

The following output is displayed on the console.

xmlns:ns="http://ws.apache.org/axis2">
39.2

xmlns:ns="http://ws.apache.org/axis2">
-15.555555555555555

Figure 97

shows the output in the console.

Figure 97 Console

Accessing a REST Web Service using HTTP GET

You can access the Axis2/Java based web services using HTTP GET. The generic REST based URL
format to access a web service is:

http://:/<servlet directory>/axis2/services/<Service name>/<Method
name
>?=

Figure 98

shows the address format to access the TemperatueConverter web service using the

REST method.

Figure 98 Java Eclipse SDK - Options

Contract-First approach

This section describes the steps to develop, set up, deploy, and run the TemperatureConverter web
service and its client, using Contract-First approach. The following tasks are described:

1.

“Developing the TemperatureConverter Web Service on Windows” (page 214)

2.

“Deploying the TemperatureConverter Web Service on NonStop” (page 216)

3.

“Running the TemperatureConverter Web Service on NonStop” (page 217)

4.

“Developing the TemperatureConverter Client on Windows using the Eclipse Galileo IDE”
(page 218)

5.

“Modifying the Client Stub File” (page 220)

6.

“Running the TemperatureConverter Client on Windows” (page 221)

Getting Started with Axis2/Java

213

This manual is related to the following products: