uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

8.3.1 Procedure for creating a service requester (Standard synchronous reception (Web Service)) (JAX-WS engine)

This subsection describes the procedure for sending a request for executing the service component in standard synchronous reception (Web Service) to create a service requester for invoking the service component.

Figure 8-13 Procedure for creating a service requester (standard synchronous reception (Web service) (JAX-WS engine)

[Figure]

The operations of each process are as follows:

Organization of this subsection
(1) Acquiring WSDL
(2) Creating service classes
(3) Creating objects
(4) Specifying parameters
(5) Creating request messages
(6) Acquiring response messages
(7) Acquiring error information

(1) Acquiring WSDL

Acquire interface information of synchronous reception (Web Service) of the HCSC server invoking the service component. For details about acquiring WSDL, see 8.3.2 Acquiring WSDL.

(2) Creating service classes

Create the service class from WSDL acquired by 8.3.2 Acquiring WSDL. For details about creating service classes, see 8.3.3 Creating service classes.

(3) Creating objects

To invoke the synchronous reception (Web Service) method, create a proxy class object from the service class generated in 8.3.3 Creating service classes. For details about creating the proxy class objects, see 8.3.4 Generating objects.

(4) Specifying parameters

Specify parameters for the method argument of the synchronous reception (Web Service). For details about specifying parameters, see 8.3.5 Specifying parameters.

(5) Creating request messages

Create the request message to request execution of the service component. For details about creating request messages, see 8.3.6 Creating request messages.

(6) Acquiring response messages

From synchronous reception (Web Service), acquire the response message for the execution request of the service component. For details about acquiring response messages, see 8.3.7 Acquiring response messages.

(7) Acquiring error information

If errors occur in the service component of the request destination, HCSC server, and the JAX-WS engine, acquire an error information and take action accordingly. For details about acquiring an error information, see 8.3.8 Acquiring error information.