2.3.6.1 FML Data Mapping Example

Following is an example of a SOAP message for the TRANSFER Oracle Tuxedo service that accepts an FML typed buffer.

The request fields for service LOGIN are:

ACCOUNT_ID 1 long /* 2 occurrences, The withdrawal account is 1st, and the deposit account is 2nd */
AMOUNT 2 float /* The amount to transfer */

Part of the SOAP message is shown in the following example:

Example 2-12 SOAP Message for an FML Typed Buffer

<SOAP:body>
       <m:TRANSFER xmlns:m=”urn:......”>
              <inbuf>
                     <ACCOUNT_ID>40069901</ACCOUNT_ID>
                     <ACCOUNT_ID>40069901</ACCOUNT_ID>
                     <AMOUNT>200.15</AMOUNT>
              </inbuf>
       </m:TRANSFER >
</SOAP:body>

The XML Schema for <inbuf> is shown in in the following example:

Example 2-13 XML Schema for an FML Typed Buffer

<xsd:complexType name=” fml_TRANSFER_In”>
  <xsd:sequence>
       <xsd:element name=”ACCOUNT_ID” type=”xsd:long” minOccurs=”2”/>
       <xsd:element name=” AMOUNT” type=”xsd:float” />
  </xsd:sequence>
</xsd: complexType >
<xsd:element name=”inbuf” type=”tuxtype: fml_TRANSFER_In” />