Administration Guide

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Configuring an Oracle SALT Application

This section contains the following topics:

 


Configuring Tuxedo Web Services

Using Tuxedo Service Metadata Repository for Oracle SALT

Oracle SALT leverages the Tuxedo Service Metadata Repository to define service contract information for both Tuxedo legacy services and SALT proxy services. Service contract information for all listed Tuxedo services is obtained by accessing the Tuxedo Service Metadata Repository system service provided by the local Tuxedo domain. Typically, SALT calls the TMMETADATA system as follows:

The following topics provide SALT-specific usage of Tuxedo Service Metadata Repository keywords and parameters:

Defining Service-Level Keywords for Oracle SALT

Table 3-1 lists the Tuxedo Service Metadata Repository service-level keywords used and interpreted by SALT.

Note: Metadata Repository service-level keywords that are not listed have no relevance to Oracle SALT and are ignored when SALT components load the Tuxedo Service Metadata Repository.

Table 3-1 Oracle SALT Usage of Service-Level Keywords in Tuxedo Service Metadata Repository
Service-Level Keyword
Oracle SALT Usage
service
The unique key value of the service. This value is referenced in the SALT WSDF file.
For native Tuxedo services, this value can be the same as the Tuxedo advertised service name or an alias name differ from the actual Tuxedo advertised service name.
For SALT proxy services, this value typically is the Web service operation local name.
servicemode
Determines the service mode (i.e., native Tuxedo service or SALT proxy service.
The valid values are:
  • tuxedo represents a native Tuxedo service
  • webservice represents a SALT proxy service, i.e. a service definition converted from a wsdl:operation
Do not use “webservice” to define a native Tuxedo service. This value is always used to define services converted from external Web services.
tuxservice
The actual Tuxedo advertised service name. If no value is specified, then the value is the same as the value in the service keyword.
For native Tuxedo service, Oracle SALT invokes the Tuxedo service defined using this keyword.
For SALT proxy service, GWWS server advertises the service name using this keyword value.
servicetype
Determines the service message exchange pattern for the specified Tuxedo service.
The following values specify mapping rules between the Tuxedo service types and Web Service message exchange pattern (MEP):
  • service corresponds to request-response MEP
  • oneway corresponds to oneway request MEP
  • queue corresponds to request-response MEP
inbuf
Specifies the input buffer (request buffer) type for the service.
For native Tuxedo services, the value can be any Tuxedo typed buffer type. The following values are Tuxedo reserved buffer types:
STRING, CARRAY, XML, MBSTRING, VIEW, VIEW32, FML, FML32, X_C_TYPE, X_COMMON, X_OCTET, NULL (input buffer is empty)

Note: The value is case sensitive, if inbuf specifies any other type other than the previous buffer types, the buffer is treated as a custom buffer type.

For SALT proxy services, the value is always FML32.
outbuf
Specifies the output buffer (response buffer with TPSUCCESS) type for the service.
For native Tuxedo services, the value can be any Tuxedo typed buffer type. The following values are Tuxedo reserved buffer types:
STRING, CARRAY, XML, MBSTRING, VIEW, VIEW32, FML, FML32, X_C_TYPE, X_COMMON, X_OCTET, NULL (input buffer is empty)

Note: The value is case sensitive, if outbuf specifies any other type other than the previous buffer types, the buffer is treated as a custom buffer type.

For SALT proxy services, the value is always FML32.
errbuf
Specifies the error buffer (response buffer with TPFAIL) type for the service.
For native Tuxedo services, the value can be any Tuxedo typed buffer type. The following values are Tuxedo reserved buffer types:
STRING, CARRAY, XML, MBSTRING, VIEW, VIEW32, FML, FML32, X_C_TYPE, X_COMMON, X_OCTET, NULL (input buffer is empty)

Note: The value is case sensitive, if errbuf specifies any other type other than the previous buffer types, the buffer is treated as a custom buffer type.

For SALT proxy services, the value is always FML32.
inview
Specifies the view name used by the service for the following input buffer types:
VIEW, VIEW32, X_C_TYPE, X_COMMON
Oracle SALT requires that you specify the view name rather than accept the default inview setting.
This keyword is for native Tuxedo services only.
outview
Specifies the view name used by the service for the following output buffer types:
VIEW, VIEW32, X_C_TYPE, X_COMMON
Oracle SALT requires that you specify the view name rather than accept the default outview setting.
This keyword is for native Tuxedo services only.
errview
Specifies the view name used by the service for the following error buffer types:
VIEW, VIEW32, X_C_TYPE, X_COMMON
Oracle SALT requires that you specify the view name rather than accept the default errview setting.
This keyword is for native Tuxedo services only.
inbufschema
Specifies external XML Schema element associated with the service input buffer. If this value is specified, Oracle SALT incorporates the external schema in the generated WSDL to replace the default data type mapping rule for the service input buffer.
This keyword is for native Tuxedo services only.
outbufschema
Specifies external XML Schema element associated with the service output buffer. If this value is specified, Oracle SALT incorporates the external schema in the generated WSDL to replace the default data type mapping rule for the service output buffer.
This keyword is for native Tuxedo services only.
errbufschema
Specifies external XML Schema element associated with the service error buffer. If this value is specified, Oracle SALT incorporates the external schema in the generated WSDL to replace the default data type mapping rule for the service error buffer.
This keyword is for native Tuxedo services only.

Defining Service Parameters for Oracle SALT

The Tuxedo Service Metadata Repository interprets parameters as sub-elements encapsulated in a Tuxedo service typed buffer. Each parameter can have its own data type, occurrences in the buffer, size restrictions, and other Tuxedo-specific restrictions. Please note:

Table 3-2 lists the Tuxedo Service Metadata Repository parameter-level keywords used and interpreted by SALT.

Note: Metadata Repository parameter-level keywords that are not listed have no relevance to Oracle SALT and are ignored when SALT components load the Tuxedo Service Metadata Repository.

Table 3-2 Oracle SALT Usage of Parameter-Level Keyword in Tuxedo Service Metadata Repository
Parameter-level Keyword
Oracle SALT Usage
param
Specifies the parameter name.
  • VIEW, VIEW32, X_C_TYPE, or X_COMMON
  • Specifies the view structure member name in the param keyword.

  • FML, FML32
  • Specifies the FML/FML32 field name in the param keyword.

  • STRING, CARRAY, XML, MBSTRING, or X_OCTET
  • Oracle SALT ignores the parameter definitions.

type
Specifies the data type of the parameter.

Note: Oracle SALT does not support dec_t and ptr data types.

subtype
Specifies the view structure name if the parameter type is view32. For any other typed parameter, Oracle SALT ignores this value.

Note: Oracle SALT requires this value if the parameter type is view32.

This keyword is for native Tuxedo service only.
access
The general definition applies for this parameter. To support Tuxedo TPFAIL scenario, the access attribute value has been enhanced.
Original values: in, out, inout, noaccess.
New added values: err, inerr, outerr, inouterr.
count
The general definition applies for this parameter. For Oracle SALT, the value for the count parameter must be greater than or equal to requiredcount.
requiredcount
The general definition applies for this parameter. The default is 1. For Oracle SALT, the value for the count parameter must be greater than or equal to requiredcount.
size
This optional keyword restricts the maximum byte length of the parameter. It is only valid for the following parameter types:
STRING, CARRAY, XML, and MBSTRING
If this keyword is not set, there is no maximum byte length restriction for this parameter.
The value range is [0, 2147483647]
paramschema
Specifies the corresponding XML Schema element name of the parameter. It is generated by SALT WSDL converter.
This keyword is for SALT proxy service only. Do not specify this keyword for native Tuxedo services.
primetype
Specifies the corresponding XML primitive data type of the parameter. It is generated by SALT WSDL converter according to SALT pre-defined XML-to-Tuxedo data type mapping rules.
This keyword is for SALT proxy service only. Do not specify this keyword for native Tuxedo services.

Configuring Native Tuxedo Services

This section describes the required and optional configuration tasks for exposing native Tuxedo services as Web Services:

Creating a Native WSDF

To expose a set of Tuxedo services as Web services through one or more HTTP/S endpoints, a native WSDF must be defined.

Each native WSDF must be defined with a unique WSDF name. A WSDF can define one or more <WSBinding> elements for more Web service application details (such as SOAP protocol details, the Tuxedo service list to be exposed as web service operations, and so on).

Defining WSBinding Object

Each WSBinding object is defined using the <WSBinding> element. Each WSBinding object must be defined with a unique WSBinding id within the WSDF. The WSBinding id is a required indicator for the SALTDEPLOY file reference used by the GWWS.

Each WSBinding object can be associated with SOAP protocol details by using the <SOAP> sub- element. By default, SOAP 1.1, document/literal styled SOAP messages are applied to the WSBinding object.

Listing 3-1 shows how SOAP protocol details are redefined using the <SOAP> sub-element.

Listing 3-1 Defining SOAP Protocol Details for a WSBinding
<Definition ...>
  <WSBinding id="simpapp_binding">
    <Servicegroup id="simpapp">
      <Service name="toupper" />
      <Service name="tolower" />
    </Servicegroup>
    <SOAP version=”1.2” style=”rpc” use=”encoded”>
      <AccessingPoints>
        ...
      </AccessingPoints>
    </SOAP>
  </WSBinding>
</Definition>

Within the <SOAP> element, a set of access endpoints can be specified. The URL value of these access endpoints are used by corresponding GWWS servers to create the listen HTTP/S protocol port. It is recommended to specify one HTTP and HTTPS endpoint (at most) for each GWWS server for an inbound WSBinding object.

Each WSBinding object must be defined with a group of Tuxedo services using the <Servicegroup> sub-element. Each <Service> element under <Servicegroup> represents a Tuxedo service that can be accessed from a Web service client.

Defining Service Object

Each service object is defined using the <Service> element. Each service must be specified with the “name” attribute to indicate which Tuxedo service is exposed. Usually, the “name” value is used as the key value for obtaining Tuxedo service contract information from the Tuxedo Service Metadata Repository.

Listing 3-2 shows how a group of services are defined for WSBinding.

Listing 3-2 Defining a Group of Services for a WSBinding
<Definition ...>
  <WSBinding id="simpapp_binding">
    <Servicegroup id="simpapp">
      <Service name="toupper" />
      <Service name="tolower" />
    </Servicegroup>
    ...
  </WSBinding>
</Definition>
Configuring Message Conversion Handler

You can create your own plug-in functions to customize SOAP XML payload and Tuxedo typed buffer conversion routine. For more information, see Using Oracle SALT Plug-ins in Oracle SALT Programming Web Services and Configuring Plug-in Libraries.

Once a plug-in is created and configured, it can be referenced using the <service> element to specify user-defined data mapping rules for that service. The <Msghandler> element can be defined at the message level (<Input>, <Output> or <Fault>) to specify which implementation of “P_CUSTOM_TYPE” category plug-in should be used to do the message conversion. The <Msghandler> element content is the Plug-in name.

Listing 3-3 shows a service that uses the “MBCONV” custom plug-in to convert input and “XMLCONV” custom plug-in to convert output.

Listing 3-3 Configuring Message Conversion Handler for a Service
<Definition ...>
  <WSBinding id="simpapp_binding">
    <Servicegroup id="simpapp">
      <Service name="toupper" >
        <Input>
          <Msghandler>
MBCONV</Msghandler>
        </Input>
        <Output>
          <Msghandler>
XMLCONV</Msghandler>
        </Output>
     </Service>
    </Servicegroup>
    ...
  </WSBinding>
</Definition>

Using WS-Policy Files

Advanced Web service features can be enabled by configuring WS-Policy files (for example, Reliable Messaging and Web Service Message-Level Security). You may need to create WS-Policy files to use these features. The Web Service Policy Framework specifications provides a general purpose model and syntax to describe and communicate the policies of a Web Service.

To use WS-Policy files, the <Policy> element should be defined in the WSDF to incorporate these separate WS-Policy files. Attribute location is used to specify the policy file path, both abstract and relative file path are allowed. Attribute use is optionally used by message level assertion policy files to specify the applied messages, request (input) message, response (output) message, fault message, or the combination of the three.

There are two different sub-elements in the WSDF that reference WS-Policy files:

Oracle SALT provides some pre-packaged WS-Policy files for most frequently used cases. These WS-Policy files are located under directory $TUXDIR/udataobj/salt/policy. These files can be referenced using location=”salt:<policy_file_name>”.

Listing 3-4 shows a sample of using WS-Policy Files in the native WSDF file.

Listing 3-4 A Sample of Defining WS-Policy Files in the WSDF File
<Definition ...>
  <WSBinding id="simpapp_binding">
    <Servicegroup id="simpapp">
      <Policy location=”./endpoint_policy.xml” />
      <Policy location=”/usr/resc/all_input_msg_policy.xml” use=”input” />
      <Service name="toupper">
        <Policy location=”service_policy.xml” />
        <Policy location=”/usr/resc/input_message_policy.xml”
                use=”input” />
      </Service>
      <Service name="tolower" />
    </Servicegroup>
    ....
  </WSBinding>
</Definition>

For more information, see Specifying the Reliable Messaging Policy File in the WSDF File and Using WS-SecurityPolicy Files.

Generating a WSDL File from a Native WSDF

Once a Tuxedo native WSDF is created, the corresponding WSDL file can be generated using the SALT WSDL generation utility, tmwsdlgen. The following example command generates a WSDL file named “app1.wsdl” from a given WSDF named “app1.wsdf”:

tmwsdlgen -c app1.wsdf -o app1.wsdl

Note: Before executing tmwsdlgen, the TUXCONFIG environment variable must be set correctly and the relevant Tuxedo application using TMMETADATA must be booted.

You can optionally specify the output WSDL file name using the ‘-o’ option. Otherwise, tmwsdlgen creates a default WSDL file named “tuxedo.wsdl”.

If the native WSDF file contains Tuxedo services that use CARRAY buffers, you can specify tmwsdlgen options to generate different styled WSDL files for CARRAY buffer mapping. By default, CARRAY buffers are mapped as xsd:base64Binary XML data types in the SOAP message. For more information, see Data Type Mapping and Conversions in the Oracle SALT Programming Web Services and tmwsdlgen in the Oracle SALT Reference Guide.

Configuring External Web Services

To invoke an external Web Service from Tuxedo, the following configuration tasks need to be performed:

Converting a WSDL file into Tuxedo Definitions

Oracle SALT provides a WSDL conversion command utility to convert external WSDL files into Tuxedo definitions. The WSDL file is converted using Extensible Stylesheet Language Transformations (XSLT) technology. Apache Xalan Java 2.7.0 is bundled in SALT installation package and is used as the default XSLT toolkit.

Oracle SALT WSDL converter is composed of two parts:

The following sample command converts an external WSDL file and generates Tuxedo definition files.

wsdlcvt -i http://api.google.com/GoogleSearch.wsdl -o GSearch

Table 3-3 lists the Tuxedo definition files generated by Oracle SALT WSDL Converter.

Table 3-3 Tuxedo Definition Files generated by Oracle SALT WSDL Converter
Generated File
Description
Tuxedo Service Metadata Repository input file
Oracle SALT WSDL Converter converts each wsdl:operation to a Tuxedo service metadata syntax compliant service called SALT proxy service. SALT proxy services are advertised by GWWS servers to accept ATMI call from Tuxedo applications.
FML32 field table definition file
Oracle SALT maps each wsdl:message to a Tuxedo FML32 typed buffer. Oracle SALT WSDL Converter decomposes XML Schema of each message and maps each basic XML snippet as an FML32 field. The generated FML32 fields are defined in a definition table file, and the field name equals to the XML element local name by default.
To access a SALT proxy service, Tuxedo applications must refer to the generated FML32 fields to handle the request and response message. FML32 environment variables must be set accordingly so that both Tuxedo applications and GWWS servers can map between field names and field identifier values.

Note: You may want to re-define the generated field names due to field name conflict or some other reason. In that case, both Tuxedo Service Metadata Definition input file and FML32 field table definition file must be changed accordantly. For more information, see Resolving Naming Conflict For the Generated SALT Proxy Service Definitions.

Non-native WSDF file
Oracle SALT WSDL Converter converts the WSDL file into a WSDF file, which can be deployed to GWWS servers in the SALT deployment file for outbound direction. The generated WSDF file is so-called non-native WSDF file.

Note: Please do not deploy non-native WSDF files for inbound direction.

XML Schema files
WSDL embedded XML Schema and imported XML Schema (XML Schema content referenced with <xsd:import>) are saved locally as .xsd files. These files are used by GWWS servers and need to be saved under the same directory.

Note: New XML Schema environment variables XSDDIR and XSDFILES must be set accordingly so that GWWS servers can load these .xsd files.

WSDL-to-Tuxedo Service Metadata Keyword Mapping

Table 3-4 lists WSDL Element-to-Tuxedo Service Metadata Definition Keyword mapping rules.

Table 3-4 WSDL Element-to-Tuxedo Service Metadata Definition Mapping
WSDL Element
Corresponding Tuxedo Service Metadata Definition Keyword
Note
/wsdl:definitions
 /wsdl:portType
  /wsdl:operation
   @name
service
SALT proxy service name.
The keyword value equals to the operation local name.
tuxservice
SALT proxy service advertised name in Tuxedo system.
If the wsdl operation local name is less than 15 characters, keyword value equals to the operation local name, otherwise the keyword value is the first 15 characters of the operation local name.
/wsdl:definitions
 /wsdl:portType
  /wsdl:operation
   /wsdl:input
inbuf=FML32
WSDL operation messages are always mapped as Tuxedo FML32 buffer type.
Please do not change the buffer type any way.

Note: For more information about wsdl message and FML32 buffer mapping, see XML-to-Tuxedo Data Type Mapping for External Web Services in the Oracle SALT Programming Web Services.

/wsdl:definitions
 /wsdl:portType
  /wsdl:operation
   /wsdl:output
outbuf=FML32
/wsdl:definitions
 /wsdl:portType
  /wsdl:operation
   /wsdl:fault
errbuf=FML32

WSDL-to-WSDF Mapping

Table 3-5 lists WSDL Element-to-WSDF Element mapping rules.

Table 3-5 WSDL Element-to-WSDF Element Mapping
WSDL Element
WSDF Element
Note
/wsdl:definitions
 @targetNamespace
/Definition
 @wsdlNamespace
Each wsdl:definition maps to a WSDF Definition.
/wsdl:definitions
 /wsdl:binding
/Definition
 /WSBinding
Each wsdl:binding object maps to a WSDF WSBinding element.
/wsdl:definitions
 /wsdl:binding
  @type
/Definition
 /WSBinding
  /Servicegroup
Each wsdl:binding referenced wsdl:portType object maps to the Servicegroup element of the corresponding WSBinding element.
/wsdl:definitions
 /wsdl:binding
  /soap:binding
/Definition
 /WSBinding
  /SOAP
   @version
If namespace prefix “soap” refers to URI “http://schemas.xmlsoap.org/wsdl/soap/”, the SOAP version attribute value is “1.1”;
If namespace prefix “soap” refers to URI “http://schemas.xmlsoap.org/wsdl/soap12/”, the SOAP version attribute value is “1.2”.
/wsdl:definitions
 /wsdl:binding
  /soap:binding
   @style
/Definition
 /WSBinding
  /SOAP
   @style
The WSDF WSBinding SOAP message style setting equals to the corresponding WSDL soap binding message style setting (“rpc” or “document”).
/wsdl:definitions
 /wsdl:binding
  /wsdl:operation
/Definition
 /WSBinding
  /Servicegroup
   /Service
Each wsdl:operation object maps to a Service element of the corresponding WSBinding element.
/wsdl:definitions
 /wsdl:port
  /soap:address
/Definition
 /WSBinding
  /SOAP
   /AccessingPoints
    /Endpoint
Each soap:address endpoint defined for a wsdl:binding object maps to a Endpoint element of the corresponding WSBinding element.

Post Conversion Tasks

The following post conversion tasks need to be performed for configuring outbound Web service applications:

Resolving Naming Conflict For the Generated SALT Proxy Service Definitions

When converting a WSDL file, unexpected naming conflicts may be found due to truncation or lost context information. Before using the generated Service Metadata Definitions and FML32 field table files, the following potential naming conflicts must be eliminated first.

Loading the Generated SALT Proxy Service Metadata Definitions

After potential naming conflicts are resolved, you should load the SALT proxy service metadata definitions into the Tuxedo Service Metadata Repository through tmloadrepos utility. For more information, see tmloadrepos, in the Oracle Tuxedo Service Metadata Repository Documentation.

Setting Environment Variables for GWWS Runtime

Before booting GWWS servers for outbound web services, the following environment variable settings must be performed.

Creating the SALT Deployment File

The SALT Deployment file (SALTDEPLOY) defines a SALT Web service application. The SALTDEPLOY file is the major input for Web service application in the binary SALTCONFIG file.

To create a SALTDEPLOY file, do the following steps:

  1. Importing the WSDF Files
  2. Configuring the GWWS Servers
  3. Configuring System Level Resources

For more information, see SALT Deployment File Reference in the Oracle SALT Reference Guide.

Importing the WSDF Files

You should import all your required WSDF files to the SALT deployment file. Each imported WSDF file must have a unique WSDF name which is used by the GWWS servers to make deployment associations. Each imported WSDF file must be accessible through the location specified in the SALTDEPLOY file.

Listing 3-5 shows how to import WSDF files in the SALTDEPLOY file.

Listing 3-5 Importing WSDF Files in the SALTDEPLOY File
<Deployment ..>
  <WSDF>
    <Import location="/home/user/simpapp_wsdf.xml" />
    <Import location="/home/user/rmapp_wsdf.xml" />
    <Import location="/home/user/google_search.wsdf" />
  </WSDF>
  ...
</Deployment>

Configuring the GWWS Servers

Each GWWS server can be deployed with a group of inbound WSBinding objects and a group of outbound WSBinding objects defined in the imported WSDF files. Each WSBinding object is referenced using attribute “ref=<wsdf_name>:<WSBinding id>”. For inbound WSBinding objects, each GWWS server must specify at least one access endpoint as an inbound endpoint from the endpoint list in the WSBinding object. For outbound WSBinding objects, each GWWS server can specify zero or more access endpoints as outbound endpoints from the endpoint list in the WSBinding object.

Listing 3-6 shows how to configure GWWS servers with both inbound and outbound endpoints.

Listing 3-6 GWWS Server Defined In the SALTDEPLOY File
<Deployment ..>
  ...
  <WSGateway>
    <GWInstance id="GWWS1">
      <Inbound>
        <Binding ref="app1:app1_binding">
          <Endpoint use="simpapp_GWWS1_HTTPPort" />
          <Endpoint use="simpapp_GWWS1_HTTPSPort" />
        </Binding>
      </Inbound>
      <Outbound>
        <Binding ref="app2:app2_binding">
          <Endpoint use=" simpapp_GWWS1_HTTPPort" />
          <Endpoint use=" simpapp_GWWS1_HTTPSPort" />
        </Binding>
        <Binding ref="app3:app3_binding" />
      </Outbound>
    </GWInstance>
  </WSGateway>
  ...
</ Deployment>
Configuring GWWS Server Level Properties

The GWWS server can be configured with properties that switch feature on/off or set argument to tune the server’s performance.

Properties are configured in the <GWInstance> child element <Properties>. Each individual property is defined by using the <Property> element which contains a “name” attribute and a “value” attribute). Different “name” attributes represent different property elements that contain a value. Table 3-6 lists GWWS server level properties.

Table 3-6 GWWS Server Level Properties
Property Name
Description
Value Range
Default
enableMultiEncoding
Switch on/off the SOAP message multiple encoding support
“true”|“false”
“false”
max_backlog
Specify socket backlog control value
[1, 255]
20
max_content_length
Specify the maximum allowed incoming HTTP message content length.
[0, 1G](byte)
(Can set suffix ‘M’,’G’, e.g. 1.5M, 0.2G)
0
(means no limit)
thread_pool_size
Specify the GWWS server thread pool size.
[1, 1024]
16
timeout
Specify the network timeout in seconds.
[1, 65535]
(unit:sec)
300
wsrm_acktime
Specify the Reliable Messaging Acknowledgement message reply policy. GWWS servers support replying acknowledgement messages either after receiving the SOAP request from network immediately or after the Tuxedo service returns the response message.
“NETRECV” | “RPLYRECV”
“NETRECV”

Note: For more information about GWWS multiple encoding support, see Configuring Multiple Encoding Support.
Note: For more information about Performance tuning properties, see Tuning the GWWS Server.

Listing 3-7 shows an example of how GWWS properties are configured.

Listing 3-7 Configuring GWWS Server Properties
<Deployment ..>
  ...
  <WSGateway>
    <GWInstance id="GWWS1">
      .......
      <Properties>
        <Property name="
thread_pool_size" value="20"/>
        <Property name="
enableMultiEncoding" value="true"/>
        <Property name="
timeout" value="600"/>
      </Properties>
    </GWInstance>
  </WSGateway>
  ...
</ Deployment>
Configuring Multiple Encoding Support

SALT supports multiple encoding SOAP messages and the encoding mappings between SOAP message and Tuxedo buffer. SALT supports the following character encodings:

Note: ASCII, BIG5, CP1250, CP1251, CP1252, CP1253, CP1254, CP1255, CP1256, CP1257, CP1258, CP850, CP862, CP866, CP874, EUC-CN, EUC-JP, EUC-KR, GB18030, GB2312, GBK, ISO-2022-JP, ISO-8859-1, ISO-8859-13, ISO-8859-15, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, JOHAB, KOI8-R, SHIFT_JIS, TIS-620, UTF-16, UTF-16BE, UTF-16LE, UTF-32, UTF-32BE, UTF-32LE, UTF-7, UTF-8

To enable the GWWS multiple encoding support, GWWS server level property “enableMultiEncoding” should be set to “true” as shown in Listing 3-8.

Note: GWWS internally converts non UTF-8 external messages into UTF-8. However, encoding conversion hurts server performance. By default, encoding conversion is turned off and messages that are not UTF-8 encoded are rejected.
Listing 3-8 Configuring GWWS Server Multiple Encoding Property
<Deployment ..>
  ...
  <WSGateway>
    <GWInstance id="GWWS1">
      .......
      <Properties>
        <Property name="enableMultiEncoding" value="true"/>
      </Properties>
    </GWInstance>
  </WSGateway>
  ...
</ Deployment>

Table 3-7 explains the detailed SOAP message and Tuxedo buffer encoding mapping rules if the GWWS server level multiple encoding switch is turned on.

Table 3-7 SALT Message Encoding Mapping Rules
Mapping from ...
Mapping to ...
Encoding Mapping Rule
SOAP/XML
Tuxedo Typed Buffer
string/mbstring/xml buffer or field characters’ encoding equals to SOAP xml encoding.
STRING Typed Buffer
SOAP/XML
GWWS sets the target SOAP message in UTF-8 encoding, and assumes the original STRING buffer containing only UTF-8 encoding characters.

Note: Tuxedo Developers must ensure the STRING characters are in UTF-8 encoding.

MBSTRING/XML Typed Buffer
SOAP/XML
SOAP xml encoding equals to MBSTRING/XML encoding.
FML/32, VIEW/32 Typed Buffer that containing the same encoding setting for multiple FLD_MBSTRING fields
SOAP/XML
SOAP xml encoding is set to FLD_MBSTRING encoding, the original Typed buffer field characters are not changed in the SOAP message.
Note: Tuxedo Developers must ensure the FLD_STRING characters in the same buffer are in consistent encoding.
FML/32, VIEW/32 Typed Buffer that containing the different encodings for multiple FLD_MBSTRING fields
SOAP/XML
SOAP xml encoding is set to UTF-8, the original Typed buffer FLD_MBSTRING field characters in other encodings are converted into UTF-8 in the SOAP message.

Note: Tuxedo Developers must ensure the FLD_STRING characters in the same buffer are in UTF-8 encoding.

Configuring System Level Resources

Oracle SALT defines a set of global resources shared by all GWWS servers in the SALTDEPLOY file. The following system level resources can be configured in the SALTDEPLOY file:

Configuring Certificates

Certificate information must be configured in order for the GWWS server to create an SSL listen endpoint, or to use X.509 certificates for authentication and/or message signature. All GWWS servers defined in the same deployment file shares the same certificate settings, including the private key file, trusted certificate directory, and so on.

The private key file is configured using the <Certificate>/<PrivateKey> sub-element. The private key file must be in PEM file format and stored locally.

SSL clients can optionally be verified if the <Certificate>/<VerifyClient> sub-element is set to true. By default, the GWWS server does not verify SSL clients.

If SSL clients are to be verified, and/or the X.509 certificate authentication feature is enabled, a set of trusted certificates must be stored locally and located by the GWWS server. There are two ways to define GWWS server trusted certificates:

  1. Include all certificates in one PEM format file and define the file path using the <<Certificate>/<TrustedCert> sub-element.
  2. Saving separate certificate PEM format files in one directory and define the directory path using the <<Certificate>/<CertPath> sub-element.
Note: The "cn" attribute of a distinguished name is used as key for certificate lookup. Wildcards used in a name are not supported. Empty subject fields are not allowed. This limitation is also found in Oracle Tuxedo.

Listing 3-9 shows a SALTDEPLOY file segment configuring GWWS server certificates.

Listing 3-9 Configuring Certificates In the SALTDEPLOY File
<Deployment ..>
  ...
  <System>
    <Certificates>
      <PrivateKey>/home/user/gwws_cert.pem</PrivateKey>
      <VerifyClient>true</VerifyClient>
      <CertPath>/home/user/trusted_cert</CertPath>
    </Certificates>
  </System>
</Deployment
Configuring Plug-in Libraries

A plug-in is a set of functions that are called when the GWWS server is running. Oracle SALT provides a plug-in framework as a common interface for defining and implementing plug-ins. Plug-in implementation is carried out through a dynamic library that contains the actual function code. The implementation library can be loaded dynamically during GWWS server start up. The functions are registered as the implementation of the plug-in interface.

In order for the GWWS server to load the library, the library must be specified using the <Plugin>/<Interface> element in the SALTDEPLOY file.

Listing 3-10 shows a SALTDEPLOY file segment configuring multiple customized plug-in libraries to be loaded by the GWWS servers.

Listing 3-10 Configuring Plug-in Libraries In the SALTDEPLOY File
<Deployment ..>
  ...
  <System>
    <Plugin>
      <Interface lib=”plugin_1.so” />
      <Interface lib=”plugin_2.so” />
    </Plugin>
  </System>
</Deployment
Note: If the plug-in library is developed using the SALT 2.0 plug-in interface, the “id” and “name”attributes for the interface do not need to be specified. These values can be obtained through plugin interfaces.
Note: For more information, see Using Plug-ins with Oracle SALT in Oracle SALT Programming with Web Services.

Configuring Advanced Web Service Messaging Features

Oracle SALT currently supports the following advanced Web Service Messaging features:

Web Service Addressing

Oracle SALT supports Web service addressing for both inbound and outbound services. The Web service addressing (WS-Addressing) messages used by the GWWS server must comply with the Web Service Addressing standard (W3C Member Submission 10 August 2004).

Inbound services do not require specific Web service addressing configuration. The GWWS server accepts and responds accordingly to both WS-Addressing request messages and non WS-Addressing request messages.

Outbound services require Web service addressing configuration as described in the following sections:

Configuring the Addressing Endpoint for Outbound Services

For outbound services, Web service addressing is configured at the Web service binding level. In the SALTDEPLOY file, each GWWS server can specify a WS-Addressing endpoint by using the <WSAddressing> element for any referenced outbound WSBinding object to enable WS-Addressing.

Once the WS-Addressing endpoint is configured, the GWWS server creates a listen endpoint at start up. All services defined in the outbound WSBinding are invoked with WS-Addressing messages.

Listing 3-11 shows a SALTDEPLOY file segment enabling WS-Addressing for a referenced outbound Web service binding.

Listing 3-11 WS-Addressing Endpoint Defined for Outbound Web Service Binding
<Deployment ..>
  ...
  <WSGateway>
    <GWInstance id="GWWS1">
      ...
      <Outbound>
        <Binding ref="app1:app1_binding">
          <WSAddressing>
            <Endpoint address=”https://myhost:8801/app1_async_point”>
          </WSAddressing>
          <Endpoint use=" simpapp_GWWS1_HTTPPort" />
          <Endpoint use=" simpapp_GWWS1_HTTPSPort" />
        </Binding>
        <Binding ref="app2:app2_binding">
          <WSAddressing>
            <Endpoint address=”https://myhost:8802/app2_async_point”>
          </WSAddressing>
          <Endpoint use=" simpapp_GWWS1_HTTPPort" />
          <Endpoint use=" simpapp_GWWS1_HTTPSPort" />
        </Binding>
      </Outbound>
    ...
    </GWInstance>
  </WSGateway>
  ...
</ Deployment>
Notes: In a GWWS server, each outbound Web Service binding can be associated with a particular WS-Addressing endpoint address. These endpoints can be defined with the same hostname and port number, but the context path portion of the endpoint addresses must be different.
Note: If the external Web service binding does not support WS-Addressing messages, configuring Addressing endpoints may result in run time failure.
Disabling WS-Addressing

No matter you create a WS-Addressing endpoint or not in the SALTDEPLOY file, you can explicitly disable the Addressing capability for particular outbound services in the WSDF. To disable the Addressing capability for a particular outbound service, you should use the property name “disableWSAddressing” with a value set to “true” in the corresponding <Service> definition in the WSDF file. This property has no impact to any inbound services.

Listing 3-12 shows WSDF file segment disabling Addressing capability.

Listing 3-12 Disabling Service Level WS-Addressing
<Definition ...>
  <WSBinding id="simpapp_binding">
    <Servicegroup id="simpapp">
      <Service name="toupper">
        <Property name="disableWSAddressing" value=”true” />
      </Service>
      <Service name="tolower" />
    </Servicegroup>
    ....
  </WSBinding>
</Definition>

Web Service Reliable Messaging

Oracle SALT currently supports Reliable Messaging for inbound services only. To enable Reliable Messaging functionality, you must create a Web Service Reliable Messaging policy file and include the policy file in the WSDF. The policy file must comply with the WS-ReliableMessaging Policy Assertion Specification (February 2005).

Note: A WSDF containing a Reliable Messaging policy definition should be used by the GWWS server for inbound direction only.
Creating the Reliable Messaging Policy File

A Reliable Messaging Policy file is a general WS-Policy file containing WS-ReliableMessaging Assertions. The WS-ReliableMessaging Assertion is an XML segment that describes features such as the version of the supported WS-ReliableMessage specification, the source endpoint’s retransmission interval, the destination endpoint’s acknowledge interval, and so on.

For more information about the WS-ReliableMessaging policy file format, see the Oracle SALT WS-ReliableMessaging Policy Assertion Reference in the Oracle SALT Reference Guide.

Listing 3-13 shows a Reliable Messaging policy file example.

Listing 3-13 Reliable Messaging Policy File Example
<?xml version="1.0"?>
<wsp:Policy wsp:Name="ReliableSomeServicePolicy"
  xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"
  xmlns:wsp=”http://schemas.xmlsoap.org/ws/2004/09/policy”
  xmlns:beapolicy="http://www.bea.com/wsrm/policy">
  <wsrm:RMAssertion>
    <wsrm:InactivityTimeout Milliseconds="600000" />
    <wsrm:AcknowledgementInterval Milliseconds="2000" />
    <wsrm:BaseRetransmissionInterval Milliseconds="500"/>
    <wsrm:ExponentialBackoff />
    <beapolicy:Expires Expires="P1D" />
    <beapolicy:QOS QOS=”ExactlyOnce InOrder" />
  </wsrm:RMAssertion>
</wsp:Policy>
Specifying the Reliable Messaging Policy File in the WSDF File

You must reference the WS-ReliableMessaging policy file at the <Servicegroup> level in the native WSDF file. The following segment of the WSDF file shows how to reference the WS-ReliableMessaging policy file.

Listing 3-14 Reference the WS-ReliableMessaging Policy At the Endpoint Level
<Definition ...>
  <WSBinding ...>
    <Servicegroup ...>
      <Policy location=”RMPolicy.xml” />
      <Service ... />
      <Service ... />
      ...
    </Servicegroup ...>
  </WSBinding>
</Definition>
Note: Reliable Messaging in Oracle SALT does not support process/system failure scenarios, which means SALT does not store the message in a persistent storage area. Oracle SALT works in a direct mode with the SOAP client. Usually, system failure recovery requires business logic synchronization between the client and server.

Configuring Security Features

Oracle SALT provides security support at both transport level and SOAP message level. The following topics explains how to configure security features for each level:

Configuring Transport Level Security

Oracle SALT provides point-to-point security using SSL link-level security and supports HTTP basic authentication mechanism for both inbound and outbound service authentication.

Setting Up SSL Link-Level Security

To set up link-level security using SSL at inbound endpoints, you can simply specify the endpoint address with prefix “https://”. The GWWS server who uses this inbound endpoint creates SSL listen port and make SSL secured connections with Web Service Clients. SSL features need to specify certificates settings. For more information about certificate settings, see Configuring Certificates.

GWWS server automatically creates SSL secured connection to outbound endpoints that are published with URLs that having prefix “https://”.

Configuring Inbound HTTP Basic Authentication

Oracle SALT depends on the Tuxedo security framework for Web Service client authentication. There is no special configuration at Oracle SALT side to enable inbound HTTP Basic Authentication. If Tuxedo system requires user credential, HTTP Basic Authentication is simply an alternative for Web Service client program to carry the user credential.

The GWWS gateway supports Tuxedo domain security configuration for the following two authentication patterns:

The GWWS server passes the following string from the HTTP header of the client SOAP request for Tuxedo authentication.

Authorization: Basic <base64Binary of username:password>

The following is an example of a string from the HTTP header:

Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

In this example, the client sends the Tuxedo username “Aladdin” and the password “open sesame, and uses this paired value for Tuxedo authentication.

Configuring Outbound HTTP Basic Authentication

Oracle SALT supports customers to develop authentication plug-in to prepare the user credential for the outbound HTTP Basic Authentication. Outbound HTTP Basic Authentication is configured at Endpoint level. If an outbound Endpoint requires user profile in the HTTP message, you must specify the HTTP Realm for the HTTP endpoint in the WSDF file. The GWWS server invokes authentication plug-in library to prepare the username and password, and send them using HTTP Basic Authentication mechanism in the request message.

Listing 3-15 shows how to enable HTTP Basic Authentication for the outbound endpoints.

Listing 3-15 Enabling HTTP Basic Authentication For the Outbound Endpoint
<Definition ...>
  <WSBinding id="simpapp_binding">
    <SOAP>
      <AccessingPoints>
        <Endpoint id=”...” address=”...”>
          <Realm>SIMP_REALM</Realm>
        </Endpoint>
      </AccessingPoints>
    </SOAP>
    <Servicegroup id="simpapp">
    ....
    </Servicegroup>
    ....
  </WSBinding>
  ......
</Definition>

Once a service request is sending to an outbound endpoint specified with <Realm> setting, the GWWS server passes the Tuxedo client uid and gid to the authentication plug-in function, so that the plug-in can determine HTTP Basic Authentication username/password according to the Tuxedo client information. To obtain Tuxedo client uid / gid for HTTP basic authentication username/password mapping, Tuxedo security level may also need to be configured in the UBBCONFIG file. For more information, see Configuring Tuxedo Security Level for Outbound HTTP Basic Authentication.

For more information about how to develop an outbound authentication plug-in, see Programming Outbound Authentication Plug-ins in the Oracle SALT Programming Web Services.

Configuring Message Level Web Service Security

Oracle SALT supports Web Service Security 1.0 and 1.1 specification for message level security. You can use message-level security in Oracle SALT to assure:

Main Use Cases of Web Service Security

Oracle SALT implementation of the Web Service Security: SOAP Message Security specification supports the following use cases:

Using WS-SecurityPolicy Files

Oracle SALT includes a number of WS-Security Policy 1.0 and 1.2 files you can use for message level security use cases.

The WS-Policy files can be found at $TUXDIR/udataobj/salt/policy once you have successfully installed Oracle SALT.

Table 3-8 lists the default WS-Security Policy files bundled by Oracle SALT.

Table 3-8 WS-Security Policy Files Provided By Oracle SALT
File Name
Purpose
wssp1.0-username-auth.xml
WS-Security Policy 1.0. Plain Text Username Token for Service Authentication
wssp1.0-x509v3-auth.xml
WS-Security Policy 1.0. X.509 V3 Certificate Token for Service Authentication
wssp1.0-signbody.xml
WS-Security Policy 1.0. Signature on SOAP:Body for verification of X.509 Certificate Token
wssp1.2-Wss1.0-UsernameToken-plain-auth.xml
WS-Security Policy 1.2. Plain Text Username Token for Service Authentication
wssp1.2-Wss1.1-X509V3-auth.xml
WS-Security Policy 1.2. X.509 V3 Certificate Token for Service Authentication
wssp1.2-signbody.xml
WS-Security Policy 1.2. Signature on SOAP:Body for verification of X.509 Certificate Token

The above policy files except WS-Security Policy 1.2 UserToken file can be referenced at <Servicegroup> or <Service> level in the native WSDF file. The WSSP 1.2 UserToken file can only be referenced at <Servicegroup> level. The sample “wsseapp” shows how to clip the WSSP 1.2 UserToken file used in <Service> level.

Listing 3-16 shows a combination of policy assignment making that the service “TOUPPER” requires client send a UsernameToken (in plain text format) and an X509v3Token in request, and also require the SOAP:Body part of message is signed with the X.509 token.

Listing 3-16 WS-Security Policy Usage
<Definition ...>
  <WSBinding id="simpapp_binding">

    <Servicegroup id="simpapp">
      <Policy location="salt:wssp1.2-Wss1.1-X509V3-auth.xml"/>
      <Service name="TOUPPER" >
        <Policy location="D:/wsseapp/wssp1.2-UsernameToken-Plain.xml"/>
        <Policy location="salt:wssp1.2-signbody.xml" use="input"/>
      </Service>
    </Servicegroup>
    ....
  </WSBinding>
  ......
</Definition>

Policy is referred with “location” attribute of the <Policy> element. A prefix “salt:” means a SALT default bundled policy file is used. User-defined policy file can be used by directly specifying the file path.

Notes: If a policy is referred at <Servicegroup> level, it will apply to all services in this service group.

The “signbody” policy must be used with the attribute “use” set as “input”, which specifies the policy applied only for input message. This is necessary because we do not sign the SOAP:Body of output message.

Compiling SALT Configuration

Compiling a SALT configuration file means generating a binary version of the file (SALTCONFIG) from the XML version SALTDEPLOY file. To compile a configuration file, run the wsloadcf command. wsloadcf parses a deployment file and loads the binary file.

wsloadcf reads a deployment file and all imported WSDF files and WS-Policy files referenced in the deployment file, checks the syntax according to the XML schema of each file format, and optionally loads a binary configuration file called SALTCONFIG. The SALTCONFIG and (optionally) SALTOFFSET environment variables point to the SALTCONFIG file and (optional) offset where the information should be stored.

wsloadcf validates the given SALT configuration files according to the predefined XML Schema files. XML Schema files needed by Oracle SALT can be found at directory: $TUXDIR/udataobj/salt.

wsloadcf can execute for validating purpose only without generating the binary version SALTCONFIG once option “-n” is specified.

For more information about wsloadcf, see wsloadcf reference in the Oracle SALT Reference Guide.

Configuring the UBBCONFIG File for Oracle SALT

After configuring and compiling SALT configuration, Tuxedo UBBCONFIG file needs to be updated to apply SALT components in the Tuxedo application. Table 3-9 lists the UBBCONFIG file configuration tasks for Oracle SALT.

Table 3-9 UBBCONFIG File Configuration Tasks for Oracle SALT
Configuration Tasks
Required
Optional
X
 
X
 
X
 
 
X
 
X
 
X

Configuring the TMMETADATA Server in the *SERVERS Section

Oracle SALT requires at least one TMMETADATA server defined in the UBBCONFIG file. Multiple TMMETADATA servers are also allowed to increase the throughput of accessing the Tuxedo service definitions.

Listing 3-17 lists a segment of the UBBCONFIG file that shows how to define TMMETADATA servers in a Tuxedo application.

Listing 3-17 TMMETADATA Servers Defined In the UBBCONFIG File *SERVERS Section
......
*SERVERS
TMMETADATA SRVGRP=GROUP1 SRVID=1
           CLOPT="-A -- – f domain_repository_file -r"
TMMETADATA SRVGRP=GROUP1 SRVID=2
           CLOPT="-A -- – f domain_repository_file"
......
Note: Maintaining only one Service Metadata Repository file for the whole Tuxedo domain is highly recommended. To ensure this, multiple TMMETADATA servers running in the Tuxedo domain must point to the same repository file.

For more information, see “ Managing The Tuxedo Service Metadata Repository” in the Tuxedo 9.1 documentation.

Configuring the GWWS Servers in the *SERVERS Section

To boot GWWS instances defined in the SALTDEPLOY file, the GWWS servers must be defined in the *SERVERS section of the UBBCONFIG file. You can define one or more GWWS server instances concurrently in the UBBCONFIG file. Each GWWS server must be assigned with a unique instance id with the option “-i” within the Tuxedo domain. The instance id must be present in the XML version SALTDEPLOY file and the generated binary version SALTCONFIG file.

Listing 3-18 lists a segment of the UBBCONFIG file that shows how to define GWWS servers in a Tuxedo application.

Listing 3-18 GWWS Servers Defined In the UBBCONFIG File *SERVERS Section
......
*SERVERS
GWWS SRVGRP=GROUP1 SRVID=10
     CLOPT="-A -- – i GW1"
GWWS SRVGRP=GROUP1 SRVID=11
     CLOPT="-A -- – i GW2"
GWWS SRVGRP=GROUP2 SRVID=20
     CLOPT="-A -- -c saltconf_2.xml – i GW3"
......

For more information, see GWWS” in the Oracle SALT Reference Guide.

Notes: Be sure that the TMMETADATA system server is set up in the UBBCONFIG file to start before the GWWS server boots. Because the GWWS server calls services provided by TMMETADATA, it must boot after TMMETADATA.
Note: To ensure TMMETADATA is started prior to being called by the GWWS server, put TMMETADATA before GWWS in the UBBCONFIG file or use SEQUENCE parameters in *SERVERS definition in the UBBCONFIG file.
Note: SALT configuration information is pre-compiled with wsloadcf to generated a binary version SALTCONFIG file. GWWS server reads SALTCONFIG file at start up. Environment variable SALTCONFIG must be set correctly with the binary version SALTCONFIG file entity before booting GWWS servers.
Note: Option “-c” is deprecated in the current version Oracle SALT. In SALT 1.1 release, option “-c” is used to specify SALT 1.1 configuration file for the GWWS server. In SALT 2.0, GWWS server reads SALTCONFIG file at start up. GWWS server specified with this option can be booted with a warning message to indicate this deprecation. The specified file can be arbitrary and is not read by the GWWS server.

Updating System Limitations in the UBBCONFIG File

When configuring the Tuxedo domain with SALT GWWS servers, you need to plan and update Tuxedo system limitations defined in the UBBCONFIG file according to your SALT application requirements.

Tip: Defining enough MAXSERVERS number in the *RESOURCES section

Oracle SALT requires the following system servers to be started in a Tuxedo domain: TMMETADATA and GWWS. The number of TMMETADATA and GWWS server must be accounted for in the MAXSERVERS value.

Tip: Defining enough MAXSERVICES number in the *RESOURCES section

When the GWWS server working in the outbound direction, external wsdl:operations are mapped with Tuxedo services and advertised via the GWWS servers. The number of the advertised services by all GWWS servers must be accounted for in the MAXSERVICES value.

Tip: Defining enough MAXACCESSERS number in the *RESOURCES section

MAXACCESSERS value is used to specify the default maximum number of clients and servers that can be simultaneously connected to the Tuxedo bulletin board on any particular machine in this application. The number of TMMETADATA and GWWS server, maximum concurrent Web Service client requests must be accounted for in the MAXACCESSERS value.

Tip: Defining enough MAXWSCLIENTS number in the *MACHINES section

When the GWWS server working in the inbound direction, each Web Service client is deemed a workstation client in Tuxedo system; therefore, MAXWSCLIENTS must be configured with a valid number in UBBCONFIG for the machine where the GWWS server is deployed. The number shares.

Configuring Certificate Password Phrase For the GWWS Servers

Configuring security password phrase is required when setting up certificates for Oracle SALT. Certificates setting is desired when the GWWS servers enabling SSL link-level encryption and/or Web Service Security X.509 Token and signature features. The certificate private key file needs to be created and encrypted with a password phrase.

When the GWWS servers are specified with certificate related features, they are required to read the private key file and decrypt them using the password phrase. To configure password phrase for each GWWS server, keyword SEC_PRINCIPAL_NAME and SEC_PRINCIPAL_PASSVAR must be specified under each desired GWWS server entry in the *SERVERS section. During compiling the UBBCONFIG file with tmloadcf, the administrator must type the password phrase, which can be used to decrypt the private key file correctly.

Note: Only one private key file can be specified in the SALT deployment file. All the GWWS servers defined in the SALT deployment file must be provided the same password phrase for the private key file decryption.

Listing 3-19 lists a segment of the UBBCONFIG file that shows how to define security password phrase for the GWWS servers.

Listing 3-19 Security Password Phrase Defined in the UBBCONFIG File For the GWWS Servers
......
*SERVERS
GWWS SRVGRP=GROUP1 SRVID=10
     SEC_PRINCIPAL_NAME="gwws_certkey"
     SEC_PRINCIPAL_VAR="gwws_certkey"
     CLOPT="-A -- – i GW1"
GWWS SRVGRP=GROUP1 SRVID=11
     SEC_PRINCIPAL_NAME="gwws_certkey"
     SEC_PRINCIPAL_PASSVAR="gwws_certkey"
     CLOPT="-A -- – i GW2"
......

For more information, see “ UBBCONFIG(5)“in the Tuxedo 9.1 documentation.

Configuring Tuxedo Authentication for Web Service Clients

Oracle SALT GWWS servers rely on Tuxedo authentication framework to check the validity of the Web Service clients. If your legacy Tuxedo application is already applied with, Web Service clients must send user credential using one of the following approaches:

Contrarily, if you want to authenticate Web Service clients for Oracle SALT, you must configure Tuxedo authentications in the Tuxedo domain.

For more information about Tuxedo authentication, see “Administering Authentication” in the Oracle Tuxedo 9.1 Documentation.

Configuring Tuxedo Security Level for Outbound HTTP Basic Authentication

To obtain Tuxedo client uid / gid for outbound HTTP Basic Authentication username /password mapping, you need to configure Tuxedo Security level as USER_AUTH, ACL or MANDATORY_ACL in the UBBCONFIG file.

Listing 3-20 lists a segment of the UBBCONFIG file that shows how to define security level ACL in the UBBCONFIG file.

Listing 3-20 Security Level ACL Defined in the UBBCONFIG File For Outbound HTTP Basic Authentication
*RESOURCES
IPCKEY ...
......
SECURITY ACL
......

Configuring Oracle SALT In Tuxedo MP Mode

To set up GWWS servers running on multiple machines within a MP mode Tuxedo domain, each Tuxedo machine must be defined with a separate SALTDEPLOY file and a set of separate other components.

You must propagate the following global resources across different machines:

You may define two GWWS servers running on different machine with the same functionality by associating the same WSDF files. But it requires manual propagation of the following artifacts:

Migrating from Oracle SALT 1.1

This section describes the following two possible migrating approaches for SALT 1.1 customers who plan to upgrade to SALT 2.0 release:

Running GWWS servers with SALT 1.1 Configuration File

After upgrading from SALT 1.1 to SALT 2.0 release, you may still want to run your existing SALT applications with the original SALT 1.1 configuration file. SALT 2.0 definitely supports that.

SALT configuration compiler utility, wsloadcf, supports to load the binary version SALTCONFIG from one SALT 1.1 format configuration file.

To run SALT 2.0 GWWS servers with SALT 1.1 Configuration file, you need to perform the following steps:

  1. Load the binary version SALTCONFIG from the SALT 1.1 format configuration file via wsloadcf.
  2. Set environment variable SALTCONFIG before booting the GWWS servers.
  3. Boot the GWWS servers associated with this SALT 1.1 configuration file.
Note: If customers have more than one SALT 1.1 configuration files defined in a Tuxedo domain, customers need to follow step 1 to 3 to generate more binary version SALTCONFIG files and boot corresponding GWWS servers.

Adopting SALT 2.0 Configuration Style by Converting SALT 1.1 Configuration File

When wsloadcf loads a binary version SALTCONFIG from a SALT 1.1 configuration file, it also convert this SALT 1.1 configuration file into one WSDF file and one SALTDEPLOY file.

It’s highly recommended to start using the SALT 2.0 styled configuration once you get the converted files from SALT 1.1 configuration.

Note: If customers want to incorporate more than one SALT 1.1 configuration files into one SALT 2.0 deployment, customers need to manually edit the SATLDEPLOY file for importing the other WSDF files.

Listing 3-21 lists the converted SALTDEPLOY file and WSDF file from a given SALT 1.1 configuration file.

Listing 3-21 A Sample of SALT 1.1 Configuration File (simpapp.xml)
<Configuration xmlns=" http://www.bea.com/Tuxedo/Salt/200606">
  <Servicelist id="simpapp">
    <Service name="toupper" />
    <Service name="tolower" />
  </Servicelist>
  <Policy />
  <System />
  <WSGateway>
    <GWInstance id="GWWS1">
      <HTTP address="//127.0.0.1:7805" />
      <HTTPS address="127.0.0.1:7806" />
      <Property name="timeout" value="300" />
    </GWInstance>
  </WSGateway>
</Configuration>

The converted SALT 2.0 WSDF file and deployment file are shown in Listing 3-22 and Listing 3-23.

Listing 3-22 Converted WSDF File for SALT 1.1 Configuration File (simpapp.xml.wsdf)
<Definition name="simpapp" wsdlNamespace="urn:simpapp.wsdl"
  xmlns=" http://www.bea.com/Tuxedo/WSDF/2007">
  <WSBinding id="simpapp_binding">
    <Servicegroup id="simpapp">
      <Service name="toupper" />
      <Service name="tolower" />
    </Servicegroup>
    <SOAP>
      <AccessingPoints>
        <Endpoint id="simpapp_GWWS1_HTTPPort"
                  address=http://127.0.0.1:7805/simpapp />
        <Endpoint id=" simpapp_GWWS1_HTTPSPort"
                  address=https://127.0.0.1:7806/simpapp />
      </AccessingPoints>
    </SOAP>
  </WSBinding>
</Definition>
Listing 3-23 Converted SALTDEPLOY File for SALT 1.1 Configuration File (simpapp.xml.dep)
<Deployment xmlns=" http://www.bea.com/Tuxedo/SALTDEPLOY/2007">
  <WSDF>
    <Import location="/home/myapp/simpapp.wsdf" />
  </ WSDF>
  <WSGateway>
    <GWInstance id="GWWS1">
      <Inbound>
        <Binding ref="simpapp:simpapp_binding">
          <Endpoint use=" simpapp_GWWS1_HTTPPort" />
          <Endpoint use=" simpapp_GWWS1_HTTPSPort" />
        </Binding>
      </Inbound>
      <Properties>
        <Property name="timeout" value="300" />
      </Properties>
    </GWInstance>
  </WSGateway>
</ Deployment>

 


Configuring Tuxedo SCA Components

Configuring Tuxedo SCA components comprises the following:

Configuring an SCA ATMI Client

The SCA ATMI client is a native Tuxedo client that is written using the SCA paradigm and built using the buildscaclient utility. The client executable must be in a subdirectory of a directory that contains the root.composite file.

Note: The APPDIR environment variable must point to the root.composite file directory.

Listing 3-24 shows the client application root composite file $APPDIR/root.composite.

Listing 3-24 Client Application Root Composite File
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="testApp">
       <component name="testStringClientComp">
              <implementation.composite name="ECHO"/>
       </component>
</composite>

The $APPDIR/ECHO directory contains the ECHO application. The directory name, "ECHO", must match the name specified in <implementation.composite name="ECHO"/>. Listing 3-25 shows the client application composite file.

Listing 3-25 Client Application Composite File
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="ECHO">
  <reference name="ECHO">
    <interface.cpp header="ECHO.h"/>
      <binding.atmi requires="legacy">
        <tuxconfig>/tux/application/ECHOServer/tuxconfig</tuxconfig>
          <inputBufferType target="TestString">STRING</inputBufferType>
          <outputBufferType target="TestString">STRING</outputBufferType>
          <errorBufferType target="TestString">STRING</errorBufferType>
       <binding.atmi>
  </reference>
</composite>

The client dynamic link library for this client application is also contained in this directory. For example, using the example in Listing 3-25, the $APPDIR/ECHO/ECHO.so shared object exists in the ECHO directory. The target "TestStr" is used to group buffer types together.

The client executable also exists in this directory. There is no naming convention associated with a client application. This client ECHO application could very well contain "doEchoClient" in the ECHO application directory. For example: $APPDIR/ECHO/doEchoClient.

Note: You must set SCA_COMPONENT. See Listing 3-25, SCA_COMPONENT=testStringClientComp.

Configuring an SCA JATMI Client

The JATMI client application configuration composite file is part of the Java .jar file. The JATMI client composite file is not part of any package and is located in the base of the .jar file. When client application is invoked, SCA Java runtime loads the composite file. No special setup is required.

Note: The client application .jar file must be included in the CLASSPATH. The following .jar files should also be part of CLASSPATH:

Listing 3-26 shows an SCA JATMI client composite file example.

Listing 3-26 SCA JATMI Client Composite File Example
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:f="binding-atmi.xsd"
name="EchoComposite">
       <reference name="ECHO" promote="EchoComponent/ECHO">
              <interface.java class="com.abc.sca.java.Echo" />
              <f:binding.atmi requires="legacy">
                     <f:serviceType>RequestResponse</f:serviceType>
                     <f:inputBufferType>FML</f:inputBufferType>
                     <f:outputBufferType>FML</f:outputBufferType>
                     <f:fieldTables>com.abc.sca.java.fml.FMLTABLE
                     </f:fieldTables>
                     <f:workStationParameters>
                            <f:networkAddress>//STRIATUM:15011
                            </f:networkAddress>
                     </f:workStationParameters>
              </f:binding.atmi>
       </reference>
       <component name="EchoComponent">
              <implementation.java
              class="com.abc.sca.java.EchoComponentImpl />
       </component>
</composite>

Configuring an SCA Workstation Client

Configuring an SCA workstation clients is similar to configuring SCA native clients. One difference is that an SCA workstation client requires using the <workStationParameters> element and its sub-elements in the composite. The SCA runtime automatically detects whether the client is built as an SCA native client or SCA workstation client and loads the correct reference binding library accordingly.

An SCA Tuxedo Workstation client has a similar directory hierarchy to an SCA native client. Both rely on the environment variable $APPDIR, which points to where the client application is located.

Listing 3-27 and Listing 3-28 show SCA Tuxedo workstation client configuration examples.

Listing 3-27 $APPDIR/root.composite
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="testApp">
       <component name="testStringClientComp">
              <implementation.composite name="ECHO"/>
       </component>
</composite>
Listing 3-28 $APPDIR/ECHO/ECHO.composite
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="ECHO">
  <reference name="ECHO">
    <interface.cpp header="ECHO.h"/>
      <binding.atmi requires="legacy">
        <inputBufferType target="TestString">STRING</inputBufferType>
        <outputBufferType target="TestString">STRING</outputBufferType>
        <errorBufferType target="TestString">STRING</errorBufferType>
      <workStationParameters>
        <networkAddress>//STRIATUM:4890</networkAddress>
        <encryptBits>128/128</encryptBits>
      </workStationParameters>
      <remoteAccess>WorkStation</remoteAccess>
      </binding.atmi>
  <reference>
</composite>

Configuring an SCA Web Service Client

The SCA Web service client is basically the same as SCA native client except that is uses the <binding.ws> element instead of <binding.atmi>. The SCA runtime automatically detects which binding the client is using, and loads the correct reference binding accordingly.

The SCA Web service client has a similar directory hierarchy as native client. They both rely on the $APPDIR environment variable to point to where the client application is located.

Listing 3-29 and Listing 3-30 show SCA Web service client configuration examples.

Listing 3-29 $APPDIR/root.composite
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="testApp">
       <component name="calcClient">
              <implementation.composite name="calcClient"/>
       </component>
</composite>
Listing 3-30 $APPDIR/calcClient/calcClient.composite
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"name="calcClient">
       <reference name="Calculator">
              <interface.cpp header="CalcService.h"/>
              <binding.ws
              endpoint="http://calc.sample#wsdl.endpoint
              (Calculator/CalculatorSOAP11port)"/>
       </reference>

</composite>

The <interface.cpp> element is required to build the appropriate proxy stub. Also, the client directory should contain the WSDL file where the endpoint specified in <binding.ws> is located. In addition, the configuration of the Tuxedo Web Services gateway (GWWS) is necessary and requires the following steps:

  1. Make sure the TMMETADATA and GWWS servers are shut down.
  2. Run wsdlcvt on the WSDL of the service(s) used. This produces a WSDF file, a Tuxedo Metadata Repository interface definitions file, fml32 field tables and XML schemas.
  3. Optionally, modify the generated WSDF file to override the actual endpoint address used at runtime. For more information, see WSDF documentation.
  4. Load the Tuxedo Metadata Repository interface definitions into the TMMETADATA server repository (e.g.: $ tmloadrepos -I calc.mif metadata.repos -y). For more information, see tmloadrepos documentation.
  5. Add a reference to the WSDF in the GWWS configuration input file (named gwws.dep for example). Listing 3-31 shows the added elements highlighted in blue.
  6. Reload the GWWS binary configuration file to take into account the changes performed in the previous five (e.g.: $ wsloadcf -y gwws.dep).
  7. Reboot GWWS and TMMETADATA.
  8. Listing 3-31 GWWS Configuration File
    <?xml version="1.0" encoding="UTF-8"?>
    <saltdep:Deployment xmlns:saltdep="http://www.bea.com/Tuxedo/SALTDEPLOY/2007" xmlns="http://www.bea.com/Tuxedo/SALTDEPLOY/2007" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <saltdep:WSDF>
                  <saltdep:Import location="calc.wsdf"/>
           </saltdep:WSDF>
           <saltdep:WSGateway>
                  <saltdep:GWInstance id="GWWS1">
                         <saltdep:Outbound>
                         <saltdep:Binding ref="calc:CalculatorSOAP11Binding">
                         <saltdep:Endpoint use="CalculatorSOAP11port"/>
                         </saltdep:Binding>
                         </saltdep:Outbound>
                  </saltdep:GWInstance>
           </saltdep:WSGateway>
            <saltdep:System/>
    </saltdep:Deployment>

Configuring an SCA ATMI Server

For an SCA ATMI server, the SCA ROOT is the same as $APPDIR. There should be at least one composite file that describes the SCA application. The SCA runtime searches for this composite file and from there it loads all the composite and componentType files for SCA server applications that are hosted in a Tuxedo environment.

Listing 3-32 shows a root composite file, named root.composite contains two SCA applications hosted in a Tuxedo application domain. The two applications are called Purchase and Finance. There are at least two subdirectories for these two SCA applications. One is called Purchase.component and the other is called Finance.component.

Listing 3-32 $APPDIR/root.composite
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="root">
       <component name="Purchase.component">
              <implementation.composite name="Purchase" />
       </component>
       <component name="Finance.component">
              <implementation.composite name="Finance" />
       </component>
</composite>

Listing 3-33 shows the Purchase.component directory contains a composite file for the Purchase application named Purchase.composite. Similarly, the Finance.component directory contains a composite file for the Finance application named Finance.composite.

Listing 3-33 $APPDIR/Purchase.component/Purchase.composite
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
       name="Purchase">
       <service name="purchase">
              <interface.cpp header="Purchase.h" />
       <binding.atmi requires="legacy">
              <map target="Order">ORDER</map>
              <map target="TrackOrder">TRACKORDER</map>
       </binding.atmi>
       <reference>PurchaseServiceComponent</reference>
       </service>
       <component name="PurchaseServiceComponent">
              <implementation.cpp library="Purchase" header="PurchaseImpl.h" />
       </component>
</composite>

Listing 3-34 shows Purchase.composite contains the PurchaseImpl.componentType file in the $APPDIR/Purchase.component directory and uses CPP as its application implementation. When an SCA server using this configuration is built using the buildscaserver utility, it advertises two SCA services automatically at runtime (ORDER and TRACKORDER). The actual CPP implementation of the services is called Order and TrackOrder.

Listing 3-34 $APPDIR/Purchase.component/PurchaseImpl.componentType
<?xml version="1.0" encoding="UTF-8"?>
<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"
              xmlns:xs="http://www.w3.org/2001/XMLSchema">
       <service name="purchase">
              <interface.cpp header="Purchase.h"/>
       </service>
</componentType>

Assume these two SCA applications hosted in Tuxedo and built using buildscaserver are called PurchaseSvr and FinanceSvr. You must add the following lines to the *SERVERS section in the UBBCONFIG file:

PurchaseSvr SRVGRP=PURCHASEGRP SRVID=500

FinanceSvr SRVGRP=FINANCEGRP SRVID=600

There is no need to add a service in the *SERVICES section. SCA services hosted by Tuxedo are dynamically advertised.

Configuring an SCA Web Service Server

Configuring Web services binding for components (server side) is similar to configuring ATMI binding for hosting SCA components.

Listing 3-35 shows a root composite file named root.composite. It contains one SCA component hosted in a Tuxedo application domain. The two applications are called Purchase and Finance. There are at least two subdirectories for these two SCA applications, one is called Purchase.component, and the other is called Finance.component.

Listing 3-36 shows the actual component subdirectory. Listing 3-37 shows the componentType side file

Listing 3-35 $APPDIR/root.composite
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="root">
       <component name="account">
              <implementation.composite name="account" />
       </component>
</composite>
Listing 3-36 $APPDIR/account/account.composite
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
       name="account">
              <service name="AccountService">
                     <interface.wsdl interface="http://www.bigbank.com/AccountService#wsdl.interface(AccountService)"/>
                     <binding.ws/>
                            <reference>AccountServiceComponent</reference>
              </service>

       <component name="AccountServiceComponent">
              <implementation.cpp library="Account" header="AccountServiceImpl.h"/>
       </component>
</composite>
Listing 3-37 $APPDIR/account/AccountServiceImpl.componentType
<?xml version="1.0" encoding="UTF-8"?>
<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"
       xmlns:xs="http://www.w3.org/2001/XMLSchema">
       <service name="AccountService">
              <interface.cpp header="AccountService.h"/>
       </service>
</componentType>

The above SCA component will be hosted in a Tuxedo server built using buildscaserver with the -w option (for Web Services) and named WSServer

Then in the Tuxedo UBBCONFIG file you need to add the following line in the *SERVERS section: WSServer SRVGRP=ACCTGRP SRVID=500.

There is no need add a service in the *SERVICES section. SCA services hosted by Tuxedo are dynamically advertised.

In addition, configuration of the Tuxedo Web Services gateway (GWWS) is necessary. Do the the following steps:

  1. Make sure the TMMETADATA and GWWS servers are shut down
  2. Run wsdlcvt on the WSDL of the service(s) used. This produces a WSDF file, a Tuxedo Metadata Repository interface definitions file, fml32 field tables and XML schemas
  3. Modify the generated WSDF file to specify the actual endpoint address used at runtime to accept requests. For more information, see WSDF documentation.
  4. Load the Tuxedo Metadata Repository interface definitions into the TMMETADATA server repository (e.g.:$ tmloadrepos -I AccountService.mif metadata.repos -y). For more information, see tmloadrepos documentation.
  5. Add a reference to the WSDF in the GWWS configuration input file (named gwws.dep for example). Listing 3-38 shows the elements added highlighted in blue.
  6. Reload the GWWS binary configuration file to take into account the changes performed in the step five (e.g.: $ wsloadcf -y gwws.dep).
  7. Reboot GWWS and TMMETADATA.
  8. Listing 3-38 gwws.dep File
    <?xml version="1.0" encoding="UTF-8"?>
    <saltdep:Deployment xmlns:saltdep="http://www.bea.com/Tuxedo/SALTDEPLOY/2007" xmlns="http://www.bea.com/Tuxedo/SALTDEPLOY/2007" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <saltdep:WSDF>
                  <saltdep:Import location="AccountService.wsdf"/>
           </saltdep:WSDF>
           <saltdep:WSGateway>
                  <saltdep:GWInstance id="GWWS1">
                         <saltdep:Inbound>
                                <saltdep:Binding ref="AccountService:AccountServiceSOAP">
                                <saltdep:Endpoint use="AccountServiceSOAP"/>
                                    </saltdep:Binding>
                         </saltdep:Inbound>
                  </saltdep:GWInstance>
           </saltdep:WSGateway>
           <saltdep:System/>
    </saltdep:Deployment>

Configuring SCA Client Security

Tuxedo SCA components support two types of security:

Tuxedo Application Domain Security

Tuxedo Application Domain Security is set when the TUXCONFIG file for the Tuxedo Application Domain contains the SECURITY keyword in the *RESOURCES section. There are five levels of application security: NONE, APP_PW, USER_PW, ACL, and MANDATORY_ACL. All security levels except NONE require at least an application password from user to gain access to the Tuxedo application. At the USER_PW level and above there is an additional user password to authenticate the user and establish user credentials. In total there are potentially two passwords that need to be configured.

All SCA clients require this password information in order to gain access to Tuxedo application servers. There are two ways for an SCA client to retrieve password information:

In order for the SALT administrator to configure password retrieval, the administrator must:

Listing 3-39 and Listing 3-40 contain SCA ATMI client application examples.

Listing 3-39 $APPDIR/password.store $APPDIR/simple.app.composite
<?xml version="1.0" encoding="UTF-8"?>

<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
       name="simple.app">
       
       <component name="simpapp.TuxClient">
              <implementation.composite name="simpapp.client"/>
              <reference name="TOUPPER">tuxToupper</reference>
       </component>

</composite>
Listing 3-40 $APPDIR/simpapp.client/simpapp.client.composite
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" 
name="simpapp.client">

  <reference name="TOUPPER">
    <interface.cpp header="ToupperTuxService.h"/>
    <binding.atmi requires="legacy">
      <tuxconfig>d:\tests\tuxedo\sca\tests\TUXCONFIG</tuxconfig>
      <inputBufferType target="charToup">STRING</inputBufferType>
      <outputBufferType target="charToup">STRING</outputBufferType>
        <authentication
          <passwordIdentifier>aaa</passwordIdentifier>
        </authentication>
    </binding.atmi>
  </reference>
</composite>

The above composite defines a Tuxedo application domain password identification "aaa" which will cause the ATMI reference binding to retrieve the password with identification "aaa" from the password.store file at the runtime. If you increased Tuxedo application domain security by requiring user authentication. (SECURITY=USER_PW or above) you would use the following command: scapasswordtool -i crusoe -a.

Then use a text editor or any other tool that can edit the simpapp.client.composite file and add the following entry in the <binding.atmi/authentication> element: <userPasswordIdentifier>crusoe</userPasswordIdentifier>

Anyone using the password "crusoe" can access Tuxedo applications.

Tuxedo Link-Level Security

Tuxedo Link-Level Security has two variations. One is the easily configured Link-Level Encryption (LLE) and the other one is the more commonly used Transport Layer Security (TLS) also known as Secured Socket Layer (SSL). An SCA ATMI client using the native ATMI reference binding does not need link-level security configured at the SCA level since its transport method is native message queues and the Tuxedo BRIDGE.

The SCA JATMI client reference binding does not support link-level security. The only type of SCA client that allows configuration of link-level security is SCA Workstation ATMI client.

The SCA Workstation ATMI client contains a <workStationParameters> element configured in the composite file. The SCA runtime automatically loads the correct reference binding for this type of client.

Configuring Link-Level Encryption

Link-level encryption can be configured by adding an <encryptBits> element in the composite file. The following elements should not be configured for LLE, since they are specific to SSL encryption and imply that SSL encryption is used:

The <encryptBits> element specifies the encryption strength that this client will attempt to negotiate. The syntax for the <encryptBits> element is <minimum encryption strength>/<maximum encryption strength>. To configure minimum 56-bit encryption you must add the following to the composite file:

<networkAddress>//STRIATUM:8741</networkAddress>

<encryptBits>56/128</encryptBits>

Note: encryptBits specifies the encryption strength that the client connection attempts to negotiate. The format is <minencryptbits>/<maxencprytbits> (for example, 128/128). Values can be 0 (no encryption is used), 40, 56, 128, or 256. Invalid values result in a configuration exception.

This tells SCA Workstation Reference binding to require 56 to 128 bits encryption strength when negotiating with WSH. You must also add the following line to the *SERVERS section in the UBBCONFIG file:

WSL SRVGRP=GROUP1 SRVID=1001 CLOPT="-A -- -n //STRIATUM:8741 -a -z 56 -Z 256

Configuring Transport Layer Security

In addition to <encryptBits>, to enable Link-Level Security over TLS/SSL you must configure secPrincipalName, secPrincipalLocation, and secPrincipalPassId.

These three parameters specify the parameters needed when a TLS/SSL connection needs to be established by a SCA Workstation ATMI client.

Note: The "cn" attribute of a distinguished name is used as key for certificate lookup. Wildcards used in a name are not supported. Empty subject fields are not allowed. This limitation is also found in Oracle Tuxedo.

Listing 3-41 contains the lines you must add to the client composite file in /binding.atmi/workStationParameters to configure TLS/SSL.

Listing 3-41 Client Composite File
<networkAddress>//STRITUM:8742</networkAddress>
<secPrincipalName>crusoe</secPrincipalName>
<secPrincipalLocation>/tux/udataobj/security/keys/crusoe.pem</secPrincipalLocation>
<secPrincipalPassId>crusoe</secPrincipalPassId>

In Tuxedo, you must add -S 8742 to WSL to indicate that TLS/SSL is used if the client connects through port 8742.

WSL  SRVGRP=GROUP1 SRVID=1001
       CLOPT="-A -- -n //STRIATUM:8741 -S 8742 -z 56 -Z 128"

 


Configuring Service Contract Discovery

When discovery is activated for a service, the server that provides the service collects service contract information and sends the information to an internal service implemented by TMMETADATA(5) . The same service contract is only sent once to reduce communication overhead.

The TMMETADATA server summarizes the collected data and generates a service contract. The contract information can either can be stored in the metadata repository, or output to a text file (which is then loaded to the metadata repository using tmloadrepos). Oracle SALT uses the tmscd command to control the service contract runtime collection. For more information, see tmscd in the Oracle SALT Command Reference Guide.

Generated service contract information contains service name, request buffer information, response buffer information, and error buffer information if there is a failure. The collected service contract information is discarded if it fails to send information to the TMMETADATA server. The buffer information includes buffer type and subtype, and field information for FML/FML32 (name,type,subtype).

Discovery is supported for any embedded buffer in FML32 buffer. For FML/FML32 field occurrences, the discovery automatically updates the pattern for the count/requiredcount in metadata repository. Field occurrence does not impact pattern, but the minimum occurrence is the "requiredcount".The maximum occurrence is the "count" of the entire contract discovery period.

For VIEW/VIEW32/X_C_TYPE/X_COMMON, only the view name is discovered. ORACLE SALT can generate view detail description by view name when using metadata repository.

Note: Patterns flagged with autodiscovery (see Table 3-10) are compared.
Note: If the same autodiscovery pattern already exists in the metatdata repository, then the newer pattern is ignored.

Only application ATMI services (local, or imported via /TDOMAIN gateway) are supported. Service contract discovery does not support the following services:

Note: Services without a reply are mapped as "oneway" services in the metadata repository.

tpforward Support

If a service issues tpforward() instead of tpreturn(), its reply buffer information will be same with the reply buffer of the service which it forwards to. For example,

Service Contract Text File Output

If you want collected service contract discovery information logged to a file instead of directly to the metadata repository, you must use the TMMETADATA(5) -o<filename> option and then use tmloadrepos to manually load the file to the metadata repository. For more information, see tmloadrepos in the Oracle Tuxedo Reference Guide.

The output complies with the format imposed by tmloadrepos if a file is used as storage instead of metadata repository. The file contains a service header section and a parameter section for each parameter. Service header contains items listed in Table 3-10. The "service" field format is <TuxedoServiceName>+'_'+<SequenceNo>. The suffix <SequenceNo> is used to avoid name conflict when multiple patterns are recognized for a Tuxedo service.

Note: <SequenceNo> starts from the last <SequenceNo> number already stored in the metadata repository.

Service parameter contains information is listed in Table 3-11.

Table 3-10 Service Level Attributes
Keywoard (abbreviation)
Sample Value
Description
service(sv)
TOUPPER_1
<RealServiceName>_<SequenceNo>.
tuxservice(tsv)
TOUPPER
The service name.
servicetype(st)
service|oneway
oneway if TPNOREPLY is set.
inbuf(bt)
STRING
FML, FML32, VIEW, VIEW32, STRING, CARRAY, XML, X_OCTET, X_COMMON, X_C_TYPE, MBSTRING or other arbitrary string representing an application defined custom buffer type.
outbuf(BT)
FML32
set to "NULL" if it's an error reply.
errbuf(ebt)
STRING
present only when it's an error reply.
inview
 
View name. Present only when inbuf is of type VEW or VIEW32.
outview
 
View name. Present only when outbuf is of type VIEW or VIEW32.
errview
 
View name. Present only when errbuf is of type VIEW or VIEW32.
autodiscovery
true
Set to "true".

Table 3-11 Parameter Level Attributes
Keyword(abbreviation)
Sample
Description
param(pn)
USER_INFO
 
paramdescription(pd)
service parameter
 
access(pa)
in
A combination of {in}{out}{err}.
type(pt)
fml32
byte, short, integer, float, double, string, carray, dec_t, xml, ptr, fml32, view32, mbstring.
subtype(pst)
 
A view name for a view or view32 typed parameter.
count
100
The maximum occurrence of FML/FML32 field watched during the collection period
requiredcount
1
The minimum occurrence of FML/FML32 field watched during the collection period.

Examples

Example 1:

Input: service=SVC, request=STRING, reply = TPSUCCESS + STRING

Output Pattern: service=SVC_1,tuxservice=SVC,inbuf=STRING,outbuf=STRING

Example 2:

Input: service=SVC, request=STRING, reply = TPFAIL+ STRING

Output Pattern (partial): Service=SVC_1, tuxservice=SVC,inbuf=STRING,outbuf=NULL,errbuf=STRING

Example 3:

Input:

service=SVC, request=STRING, reply = TPSUCCESS + STRING

service=SVC, request=STRING, reply = TPFAIL+ STRING

Output Pattern:

service=SVC_1,tuxservice=SVC,inbuf=STRING,outbuf=STRING

Service=SVC_2, tuxservice=SVC,inbuf=STRING,outbuf=NULL,errbuf=STRING

Example 4:

Input: service=FMLS,request=FML32(name,pwd),reply=TPSUCCESS+FML32(id)

Output Pattern:

service=FMLS_1,tuxservice=FMLS,inbuf=FML32,outbuf=FML32

param: input(name, pwd), output(id)

Example 5:

Input:

service=FMLS,request=FML32(name,pwd),reply=TPSUCCESS+FML32(id)

service=FMLS,request=FML32(name,pwd,token),reply=TPSUCCESS+FML32(id)

Output Pattern:

service=FMLS_1,tuxservice=FMLS,inbuf=FML32,outbuf=FML32

param: input(name, pwd), output(id)

service=FMLS_2,tuxservice=FMLS,inbuf=FML32,outbuf=FML32

param: input(name, pwd,token), output(id)

 


See Also


  Back to Top       Previous  Next