Integration Platform Technologies: Siebel eBusiness Application Integration Volume ll > EAI Siebel Adapter >

XML Examples Using the Upsert and Delete Operation


The following XML example demonstrates using the upsert and delete operation to delete a particular child without updating the parent.

<SiebelMessage MessageId="" MessageType="Integration Object" IntObjectName="Sample Account">

   <ListofSampleAccount>

      <Account operation="upsert">

         <Name>A. K. Parker Distribution</Name>

         <Location>HQ-Distribution</Location>

         <Organization>North American Organization</          Organization>

         <Division/>

         <CurrencyCode>USD</CurrencyCode>

         <Description>This is the key account in the AK Parker          Family</Description>

         <HomePage>www.parker.com</HomePage>

         <LineofBusiness>Manufacturing</LineofBusiness>

         <ListOfContact>

         <Contact operation="delete">

            <FirstName>Stan</FirstName>

            <JobTitle>Senior Mgr of MIS</JobTitle>

            <LastName>Graner</LastName>

            <MiddleName>A</MiddleName>

            <PersonalContact>N</PersonalContact>

         <Account>A. K. Parker Distribution</Account>

         <AccountLocation>HQ-Distribution</AccountLocation>

         </Contact>

         </ListOfContact>

      </Account>

   </ListofSampleAccount>

</SiebelMessage>

The following example illustrates updating multiple corresponding top level parent business component records with one XML file.

<SiebelMessage MessageId="" MessageType="Integration Object" IntObjectName="Transaction">

<ListofTransaction>

   <Transaction>

      <Field1>xxxx</Field1>

      <Field2>yyyy</Field2>

      .....

   </Transaction>

   <Transaction>

      <Field1>aaaa</Field1>

      <Field2>bbbb</Field2>

      .....

   </Transaction>

   ..............

</ListofTransaction>

</SiebelMessage>

Integration Platform Technologies: Siebel eBusiness Application Integration Volume ll