Create Contract with Header and Line DFFs (Global and CSS)

In this use case, we'll create a contract with header and line Dynamic Flex Fields (DFFs).

Contract type: All

Operation: createContract

Note that DFFs are supported only through standard operations.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<oap:Body>
<ns1:createContract xmlns:ns1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
<ns1:contractHeader xmlns:ns2="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/">
<ns2:OrgId>204</ns2:OrgId>
<ns2:ContractTypeId>104</ns2:ContractTypeId>
<ns2:ContractNumber>VinSellContract09252016d</ns2:ContractNumber>
<ns2:PartyId>1000</ns2:PartyId>
<ns2:InvOrganizationId>204</ns2:InvOrganizationId>
<ns2:CurrencyCode>USD</ns2:CurrencyCode>
<ns2:ContractHeaderFlexfieldVA  xmlns:ns3="http://xmlns.oracle.com/apps/contracts/coreAuthoring/header/flex/header/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:type="ns3:ZokcDffContext">
<ns3:gsegment1>DEF</ns3:gsegment1>
<ns3:dffNumber>567</ns3:dffNumber>
<ns3:__FLEX_Context>ZOKC_DFF_CONTEXT</ns3:__FLEX_Context>
<ns3:zokcDffCssNumber>7777</ns3:zokcDffCssNumber>
<ns3:zokcDffCssText>PQR</ns3:zokcDffCssText>
<ns3:zokcDffCssDate>2016-07-05</ns3:zokcDffCssDate>
</ns2:ContractHeaderFlexfieldVA>
<ns2:ContractLine>
<ns2:LineNumber>1</ns2:LineNumber>
<ns2:LineTypeId>102</ns2:LineTypeId>
<ns2:Object1Id1>8313</ns2:Object1Id1>
<ns2:ItemName>AS55888</ns2:ItemName>
<ns2:ContractAllLineDesFlexVA xmlns:ns4="http://xmlns.oracle.com/apps/flex/contracts/coreAuthoring/lines/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:type="ns4:ContractLineDescFlexfieldSPMConLineGSegment1Context1">
<ns4:_SPMConLineGSegment1>Z</ns4:_SPMConLineGSegment1>
<ns4:biLineSegment1>ABC</ns4:biLineSegment1>
<ns4:__FLEX_Context>SPMConLineGSegment1Context1</ns4:__FLEX_Context>
<ns4:_SPMConLineGSegment1Con1CSS1>Q</ns4:_SPMConLineGSegment1Con1CSS1>
</ns2:ContractAllLineDesFlexVA>
</ns2:ContractLine>
</ns1:contractHeader>
</ns1:createContract>
</soap:Body>
</soap:Envelope>