Siebel Interactive Selling Transact Server Interface Reference > Additional Code >

XML Default Data Definition


1.1. Data Description

1.1.1. Line Item Data Description

There will be two levels of entities describing a package. The top level entity, called LineItem, is a placeholder to contain all the Items which have been selected from the pageset. The children of the LineItem entity will be called Items and will contain configuration information, and whether the Item is a child of another Item in the LineItem.

LineItem Entity Fields

* Id

* User

* Pageset

* Pageset Version

* Date Created

* Date Submitted

* Name (if any)

* Account Id (if any)

* Quote Id (if any)

* Environment data at the pageset level

Item Entity Fields

* Id

* LineItem Id (references Id field of LineItem Entity above)

* Qty

* Config Data

* Engine Data

* Parent Id (if any)

1.1.2. Quote Data Description

The quote data description is very simple, since a quote is simply a container for one or more LineItems.  The LineItems reference their parent quote using the value in the Id field.

Quote Entity Fields

* Id

* Date Created

* User

* Name (if any)

* Account Id (if any)

* Date Submitted

* Header Field Data

1.1.3. Generic LineItem DTD

<?xml version="1.0" standalone="yes"?>

<!DOCTYPE document [

<!ELEMENT SiebelLineItem (ShippingAddress?, BillingAddress?, User?, Item+)>

<!-siebel_id: unique identifier ?

<!-- created_on: timestamp -->

<!-- id: 3rd party unique identifier -->

<!ATTLIST SiebelLineItem

siebel_id ID #REQUIRED

  created_on #REQUIRED

          id ID #IMPLIED

>

<!-- user element is optional, contains buyer identification information -->

<!ELEMENT User>

<!ATTLIST User

  user_id CDATA #REQUIRED

account_id CDATA #IMPLIED

session_id CDATA #IMPLIED

order_id CDATA #IMPLIED

>

<!--Price type examples: quoted, list, discount -->

<!ELEMENT Price (#PCDATA)>

<!ATTLIST Price

  type     CDATA #REQUIRED

  currency CDATA #IMPLIED

>

<!ELEMENT ConfigData (#PCDATA)>

<!ATTLIST ConfigData

name CDATA #REQUIRED

>

<!- An item must have config data (name/value pairs) associated with it

An item can have zero or more items as children

An item can have zero or more Price elements ?

<!ELEMENT Item (ConfigData+, Price*, Item*)>

<!ATTLIST Item

  part_number CDATA #IMPLIED

quantity CDATA #REQUIRED

description CDATA #IMPLIED

>

]>

1.1.4. Generic Quote DTD

<?xml version="1.0" standalone="yes" ?>

<!DOCTYPE document [

<!ELEMENT SiebelQuote (User?, SiebelLineItem+, Total*)>

<!ATTLIST SiebelQuote

quote_id ID #REQUIRED

date_created CDATA #REQUIRED

>

<!-Header field information -->

<!ELEMENT Header (ShippingAddress?, BillingAddress?, HeaderData*)>

<!ELEMENT HeaderData (#PCDATA)>

<!ATTLIST HeaderData

name CDATA #REQUIRED>

<!-shipping address ?

<!ELEMENT ShippingAddress (Name, Street+, City, State?, PostalCode?,Country?>

<!-billing address ?

<!ELEMENT BillingAddress (Name, Street+, City, State?, PostalCode?,Country?>

<!ELEMENT Name (#PCDATA)>

<!ELEMENT Street (#PCDATA)>

<!ELEMENT City (#PCDATA)>

<!ELEMENT State (#PCDATA)>

<!ELEMENT PostalCode (#PCDATA)>

<!ELEMENT Country (#PCDATA)>

<!-Total type examples: subtotal, grand, discount ?

<!ELEMENT Total (#PCDATA)>

<! ATTLIST Total

type CDATA #REQUIRED

currency CDATA #IMPLIED

>

(See SiebelLineItem for the rest of the DTD)


 Siebel Interactive Selling Transact Server Interface Reference 
 Published: 18 April 2003