uCosminexus Service Platform, Basic Development Guide
This subsection explains how to create a service requester that sends a service component execution request to a standard synchronous reception (Web Services) and invokes a service component. The creation workflow is shown in the following figure.
Figure 8-3 Workflow for creating a service requester (standard synchronous reception (Web Services)) (SOAP communication infrastructure)
The tasks in the individual steps are described below.
Acquire the interface information of the synchronous reception (Web Services) of the HCSC server that invokes the service component from the WSDL. For details about WSDL acquisition, see 8.2.2 Acquiring the WSDL.
Create a stub from the WSDL acquired by 8.2.1(1) WSDL acquisition (1). For details about stub creation, see 8.2.3 Creating Stubs.
In order to invoke the method of the synchronous reception (Web Services), use the stubs created in 8.2.1(2) Stub creation to generate objects. For details about object generation, see 8.2.4 Generating Objects.
Specify the parameters that become the arguments of the method of the synchronous reception (Web Services). For details about parameter specification, see 8.2.5 Specifying Parameters.
Create a request message for requesting service component execution. For details about request message creation, see 8.2.6 Creating Request Messages.
Acquire a response message corresponding to the service component execution request from the synchronous reception (Web Services). For details about response message acquisition, see 8.2.7 Acquiring Response Messages.
If an error occurs at the request-destination service component, the HCSC server, or the SOAP engine, acquire the error information and take corrective action according to the information. For details about error information acquisition, see 8.2.8 Acquiring Error Information.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.