Migrate Inter Company Contracts

In this use case, we'll create migrate contracts within a company using mergeContract operation of Contrace Webservices.

Contract type: Project

Operation: mergeContract

Request Body


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:typ="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/" 
xmlns:con="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/" 
xmlns:head="http://xmlns.oracle.com/apps/contracts/coreAuthoring/header/flex/header/" 
xmlns:par="http://xmlns.oracle.com/apps/contracts/coreAuthoring/parties/flex/partyContact/" 
xmlns:par1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/parties/flex/party/" 
xmlns:lin="http://xmlns.oracle.com/apps/flex/contracts/coreAuthoring/lines/" 
xmlns:con1="http://xmlns.oracle.com/apps/projects/billing/contracts/contractPublicService/" 
xmlns:con2="http://xmlns.oracle.com/apps/projects/billing/contracts/contractBillingService/" 
xmlns:bil="http://xmlns.oracle.com/apps/projects/billing/contracts/flex/BilllPlanDff/">
   <soapenv:Header/>
   <soapenv:Body>
      <typ:mergeContract>
	 <typ:contractHeader>
            <con:Id>999990000001443</con:Id>
             <con:ContractTypeId>104</con:ContractTypeId>
             <con:ContractLine>
               <con:Id>999990000115390</con:Id>
               <con:MajorVersion>1</con:MajorVersion>
               <con:AssociatedProject>
                 <con1:ProjectId>999991072</con1:ProjectId>
                 <con1:ProjElementId>000000000000000</con1:ProjElementId>
               </con:AssociatedProject>
                  <con:ProjectContractLineInternalAttributes>
                        <con2:ContractId>999990000001443</con2:ContractId>
                        <con2:ContractLineId>100100095844525</con2:ContractLineId>
                        <con2:MajorVersion>2</con2:MajorVersion>
                        <con2:ProviderBusinessUnitId>000000000000000</con2:ProviderBusinessUnitId>
                        <con2:ReceiverProjectId>000000000000000</con2:ReceiverProjectId>
                        <con2:ReceiverTaskId>000000000000000</con2:ReceiverTaskId>
                        <con2:OrganizationId>000000000000000</con2:OrganizationId>
                        <con2:ExpenditureTypeId>000000000000000</con2:ExpenditureTypeId>
               </con:ProjectContractLineInternalAttributes>
            </con:ContractLine>
         </typ:contractHeader>
      </typ:mergeContract>
   </soapenv:Body>
</soapenv:Envelope>

Response Body


<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <env:Header>
        <wsa:Action>http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/ContractService/mergeContractResponse</wsa:Action>
      <wsa:MessageID>urn:uuid:cfgkm49f-9734-49j7-8589-1be726f8f6fp</wsa:MessageID>
   </env:Header>
   <env:Body>
      
      <ns0:mergeContractResponse xmlns:ns0="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
         <ns2:result xsi:type="ns1:ContractHeaderResult" xmlns:ns7="http://xmlns.oracle.com/apps/contracts/coreAuthoring/header/flex/header/" 
xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/" xmlns:ns0="http://xmlns.oracle.com/adf/svc/types/" 
xmlns:ns1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/" 
xmlns:ns5="http://xmlns.oracle.com/apps/projects/billing/contracts/contractPublicService/" 
xmlns:ns6="http://xmlns.oracle.com/apps/projects/billing/contracts/contractBillingService/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:ns2="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
                 <ns1:Value>
				  <ns1:Id>300100169593123</ns1:Id>
                  <ns1:ContractTypeId>104</ns1:ContractTypeId>
                  <ns1:ContractLine xmlns:ns4="http://xmlns.oracle.com/apps/flex/contracts/coreAuthoring/lines/" 
xmlns:ns6="http://xmlns.oracle.com/apps/projects/billing/contracts/contractBillingService/">
                     <ns1:Id>100100090554281</ns1:Id>
                     <ns1:MajorVersion>1</ns1:MajorVersion>
                     <ns1:AssociatedProject>
                        <ns5:ProjectId>300100169483875</ns5:ProjectId>
                        <ns5:ProjElementId>0</ns5:ProjElementId>
                     </ns1:AssociatedProject>
                     <ns1:ProjectContractLineInternalAttributes>
                        <ns6:ContractId>300100169593123</ns6:ContractId>
                        <ns6:ContractLineId>100100090554281</ns6:ContractLineId>
                        <ns6:MajorVersion>1</ns6:MajorVersion>
                        <ns6:ProviderBusinessUnitId>0</ns6:ProviderBusinessUnitId>
                        <ns6:ReceiverProjectId>300100169483860</ns6:ReceiverProjectId>
                        <ns6:ReceiverTaskId>100100090552322</ns6:ReceiverTaskId>
                        <ns6:OrganizationId>458</ns6:OrganizationId>
                        <ns6:ExpenditureTypeId>10005</ns6:ExpenditureTypeId>
                     </ns1:ProjectContractLineInternalAttributes>
                  </ns1:ContractLine>
               </ns1:Value>
			</ns2:result>
      </ns0:mergeContractResponse>
   </env:Body>
</env:Envelope>