uCosminexus Application Server, Web Service Development Guide

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

10.13.2 Selecting the SOAP version (when developing a Web Service client)

You develop a Web Service client based on the Meta data of Web Services (such as the WSDL or the information dependent on the Web Service to which a connection is to be established). Based on the information defined in the Meta data, implement a Web Service client that communicates using an appropriate version of SOAP.

This subsection describes how to select a SOAP version when developing stub-based, dispatch-based, and API-based Web Service clients.

Organization of this subsection
(1) Stub-based Web Service clients
(2) Dispatch-based Web Service clients
(3) API-based Web Service clients

(1) Stub-based Web Service clients

When you execute the cjwsimport command, appropriate stubs are generated automatically based on the definition of the WSDL. Therefore, you need not specify whether to use the SOAP 1.1 specifications or the SOAP 1.2 specifications for communication.

Note that you always bind a port to a single binding. Therefore, the port acquisition method included in the service class is dedicated to either the SOAP 1.1 specifications or the SOAP 1.2 specifications.

(2) Dispatch-based Web Service clients

Select an appropriate SOAP version based on the Meta data of Web Services, and specify with APIs.

(3) API-based Web Service clients

Select an appropriate SOAP version based on the Meta data of Web Services, and specify with the APIs.