Rational Developer for System z

Operation

Use this element to specify the type of operation and as the container for operation properties. Note that only one operation is allowed per service. Specifying more than one operation may cause an invalid WSDL to be generated.

Contained by

EISService

Contains

Note: Operation can contain a MessageSpec element. If Operation contains a MessageSpec element, then Operation CANNOT contain: If this restriction is not followed, the results of the generation are unpredictable.

The InputOutputMessage element is being deprecated and should not be used. Instead use the InputMessage and OutputMessage elements and specify identical parameters.

Attributes

Fields Description

Attribute: name
Valid values: See Description
Required?: No
Default value: See Description

Specifies the name of the operation in the WSDL file.

The default value is: The name attribute for the EISService element concatenated with "Operation"

Attribute: type
Valid values: REQUEST_RESPONSE  |
SOLICIT_RESPONSE | ONE_WAY |
NOTIFICATION
Required?: No
Default value: REQUEST_RESPONSE

Specifies whether to generate the converter set (request, response, converters, and driver). See Note.
Note:
REQUEST_RESPONSE and SOLICIT_RESPONSE operations cause the generation of:
  1. a request converter, a response converter, a driver (if the generateConverters option is in effect),

    AND

  2. a request and response schema (if the generateSeparateXSD option is in effect).
A NOTIFICATION operation causes the generation of:
  1. a response converter, a driver (if the generateConverters option is in effect),

    AND

  2. a response schema (if the generateSeparateXSD option is in effect).
A ONE_WAY operation causes the generation of:
  1. a request converter, a driver (if the generateConverters option is in effect),

    AND

  2. a request schema (if the generateSeparateXSD option is in effect).

Example

Figure 1 is an example of Operation element.
Figure 1. Example of Operation Element
<Operation name="getCustomerInfo" type="REQUEST_RESPONSE">
        <OperationPropertyArray>
                <OperationProperty name="soapOpStyle" value="document" />
                <OperationProperty name="soapBindingStyle" value="document" />
                <OperationProperty name="soapBodyUse" value="literal" />
        </OperationPropertyArray>
        <InputOutputMessage name="CustomerDetails" importDirectory="." importFile="DFH0ACTD.cbl"
                nativeTypeName="DFHCOMMAREA">
                <RedefinesArray>
                        <RedefineSelection redefine="name.info" useRedefinition="name.last-name"/>
                        <RedefineSelection redefine="address.zip-code" useRedefinition="province"/>
                </RedefinesArray>
        </InputOutputMessage>
        <XseSpec>
                <DriverSpec fileName=""DFH0CSTDD.cbl" driverType="IMS SOAP Gateway"  
                         programName="XCNVD" businessPgmName="Ex01" />
                <ConverterSpecIn fileName="DFH0CSTDI.cbl" overwrite="true"
                        programName="XCNVI"/>
                <ConverterSpecOut fileName="DFH0CSTDO.cbl" overwrite="true"
                        programName="XCNVO"/>
                <XsdSpecIn fileName="DFH0CSTDI.xsd overwrite="true"
                        targetNamespace="http://www.DFH0CSTDI.com/schemas/DFH0CSTDIInterface"
                        xsdNamespace="http://www.w3.org/2001/XMLSchema"
                        localNamespace="http://www.DFH0CSTDI.com/schemas/DFH0CSTDIInterface"
                        xsdPrefix="cbl"
                        xsdElemName="dfhcommarea"/>
                <XsdSpecOut fileName="DFH0CSTDO.xsd" overwrite="true"
                        targetNamespace="http://www.DFH0CSTDO.com/schemas/DFH0CSTDOInterface"
                        xsdNamespace="http://www.w3.org/2001/XMLSchema"
                        localNamespace="http://www.DFH0CSTDO.com/schemas/DFH0CSTDOInterface"
                        xsdPrefix="cbl"
                        xsdElemName="dfhcommarea"/>
        </XseSpec>
</Operation>

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)