bea.com | products | dev2dev | support | askBEA

Download Docs | Site Map | Glossary
Search

Learning to Use WebLogic Integration

DTDs

The DTDs for XML data that are used by this WebLogic Integration sample can be found in the following directory in your WebLogic Integration installation:

>     \samples\wlis\lib\dtds

For your convenience, they are provided in this appendix. They include:

- General DTDs

- QPA DTDs

- PO DTDs

General DTDs

Listing A-1 common.dtd

>     <!-- Some common definition used by the DTD -->

>     <!ENTITY % ADDRESS "Address">
>     <!ELEMENT Address (Street1, Street2?, Street3?, City, State, ZipCode)>
>     <!ELEMENT Street1 (#PCDATA)>    <!-- String -->
>     <!ELEMENT Street2 (#PCDATA)>    <!-- String -->
>     <!ELEMENT Street3 (#PCDATA)>    <!-- String -->
>     <!ELEMENT City    (#PCDATA)>    <!-- String -->
>     <!ELEMENT State   (#PCDATA)>    <!-- String -->
>     <!ELEMENT ZipCode (#PCDATA)>    <!-- String -->

>     <!ENTITY % CONTACT "Contact">
>     <!ELEMENT Contact (ContactName, ContactPhone, ContactEmail?,
>                         ContactFax?, ContactAddress)>
>     <!ELEMENT ContactName    (#PCDATA)>    <!-- String -->
>     <!ELEMENT ContactPhone   (#PCDATA)>    <!-- String -->
>     <!ELEMENT ContactPhone   (#PCDATA)>    <!-- String -->
>     <!ELEMENT ContactEmail   (#PCDATA)>    <!-- String -->
>     <!ELEMENT ContactFax     (#PCDATA)>    <!-- String -->
>     <!ELEMENT ContactAddress (%ADDRESS;)>

QPA DTDs

Listing A-2 QPARequest.dtd

>     <!ELEMENT QPARequest (QPARequestId, CreationDate, Availability+)>
>         <!ELEMENT QPARequestId (#PCDATA)>  <!-- String -->
>         <!ELEMENT CreationDate (#PCDATA)>  <!-- DateStamp (CCYYMMDD) -->
>         <!ELEMENT Availability (PartId, Quantity, Price, RequiredDate,
>               Location*, Note?)>

>             <!ELEMENT PartId       (#PCDATA)>    <!-- String -->
>             <!ELEMENT Quantity     (#PCDATA)>    <!-- Long  -->
>             <!ELEMENT UnitPrice        (#PCDATA)>    <!-- Float  -->
>             <!ELEMENT RequiredDate (#PCDATA)>    <!-- DateStamp
>     (CCYYMMDD) -->
>             <!ELEMENT Location     (#PCDATA)>    <!-- String -->
>             <!ELEMENT Note         (#PCDATA)>    <!-- String -->

Listing A-3 QPAResponse.dtd

>     <!ELEMENT QPAResponse (QPAResponseId, ResponseDate, QPARequestId,
>     CreationDate, SupplierName, Availability+)>
>     <!ELEMENT QPAResponseId (#PCDATA)>    <!-- String -->
>     <!ELEMENT ResponseDate (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>     <!ELEMENT QPARequestId (#PCDATA)>    <!-- String -->
>     <!ELEMENT CreationDate (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>     <!ELEMENT SupplierName (#PCDATA)>    <!-- String -->
>     <!ELEMENT Availability (PartId, Quantity, Price, AvailableDate,
>                                 Location*, Note?)>

>             <!ELEMENT PartId        (#PCDATA)>    <!-- String -->
>             <!ELEMENT Quantity      (#PCDATA)>    <!-- Long  -->
>             <!ELEMENT UnitPrice         (#PCDATA)>    <!-- Float  -->
>             <!ELEMENT AvailableDate (#PCDATA)>
>                                     <!-- DateStamp(CCYYMMDD) -->
>             <!ELEMENT Location      (#PCDATA)>    <!-- String -->
>             <!ELEMENT Note          (#PCDATA)>    <!-- String -->

Listing A-4 Aggregated QPAResponse.dtd

>     <!ELEMENT AggregatedQPAResponse (QPARequestId, CreationDate, QPAResponse+>
>     <!ELEMENT QPAResponse (QPAResponseId, ResponseDate, SupplierName, Availability+)>
>     <!ELEMENT QPARequestId (#PCDATA)>    <!-- String -->
>     <!ELEMENT CreationDate (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>     <!ELEMENT QPAResponseId (#PCDATA)>    <!-- String -->
>     <!ELEMENT ResponseDate (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>     <!ELEMENT SupplierName (#PCDATA)>    <!-- String -->

>     <!ELEMENT Availability (PartId, Quantity, UnitPrice, AvailableDate, Location*, Note?)>
>     <!ELEMENT PartId        (#PCDATA)>    <!-- String -->
>     <!ELEMENT Quantity      (#PCDATA)>    <!-- Long  -->
>     <!ELEMENT UnitPrice         (#PCDATA)>    <!-- Float  -->
>     <!ELEMENT AvailableDate (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>     <!ELEMENT Location      (#PCDATA)>    <!-- String -->
>     <!ELEMENT Note          (#PCDATA)>    <!-- String -->

PO DTDs

Listing A-5 PORequest.dtd

>     <!ELEMENT PORequest (SupplierName, QPAResponseId, QPARequestId, POItems+)>
>     <!ELEMENT PORequest    (#PCDATA)>    <!-- String -->
>     <!ELEMENT SupplierName (#PCDATA)>    <!-- String -->
>     <!ELEMENT QPAResponseId (#PCDATA)>   <!-- String -->
>     <!ELEMENT QPARequestId (#PCDATA)>    <!-- String -->
>     <!ELEMENT POItems (PartId, Quantity, UnitPrice, DeliveryDate, Location*, Note?)>
>     <!ELEMENT PartId       (#PCDATA)>    <!-- String -->
>     <!ELEMENT Quantity     (#PCDATA)>    <!-- Long  -->
>     <!ELEMENT UnitPrice    (#PCDATA)>    <!-- Float  -->
>     <!ELEMENT DeliveryDate (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>     <!ELEMENT Location     (#PCDATA)>    <!-- String -->
>     <!ELEMENT Note         (#PCDATA)>    <!-- String -->

Listing A-6 PO.dtd

>     <!ELEMENT PurchaseOrder (PONumber, Status, CreationDate,
>     SupplierInformation, BuyerContact?, ShippingInformation?,
>     FinanceInformation?, LineItem+, TotalAmount?)>

>         <!ELEMENT PONumber     (#PCDATA)>       <!-- String -->
>         <!ELEMENT Status       (#PCDATA)>       <!-- String -->
>         <!ELEMENT CreationDate (#PCDATA)>  <!-- DateStamp (CCYYMMDD) -->
>         <!ELEMENT BuyerContact (%CONTACT;)>     <!-- Entity: CONTACT -->

>     <!ELEMENT ShippingInformation (ShipToAddress?,
>                                 ShippingProvider, ShipmentNote?)>
>          <!ELEMENT ShipToAddress    (%ADDRESS;)>  <!-- Entity:ADDRESS -->
>         <!ELEMENT ShippingProvider (#PCDATA)>       <!-- String -->
>         <!ELEMENT ShipmentNote     (#PCDATA)>       <!-- String -->

>     <!ELEMENT FinanceInformation (FinanceTerm, TaxInformation?, FinanceNote?)>

>          <!ELEMENT FinanceTerm    (#PCDATA)>    <!-- String -->
>          <!ELEMENT TaxInformation (#PCDATA)>    <!-- String -->
>          <!ELEMENT FinanceNote    (#PCDATA)>    <!-- String -->

>     <!ELEMENT SupplierInformation(SupplierName, SupplierContact?,
>                                         BillingToInformation?)>

>          <!ELEMENT SupplierName    (#PCDATA)>
>          <!ELEMENT SupplierContact (%CONTACT)>
>          <!ELEMENT BillingToInformation (BillToAddress, AccountId)>
>             <!ELEMENT BillToAddress (%ADDRESS;)>  <!-- Entity:ADDRESS -->
>           <!ELEMENT AccountID     (#PCDATA)>      <!-- String -->

>     <!ELEMENT LineItem (LineNumber, PartId, PartDescription?, Quantity,
>     UnitPrice, DeliveryDate,  Note?)>

>             <!ELEMENT LineNumber      (#PCDATA)>    <!-- String -->
>             <!ELEMENT PartId          (#PCDATA)>    <!-- String -->
>             <!ELEMENT PartDescription (#PCDATA)>    <!-- String -->
>             <!ELEMENT Quantity        (#PCDATA)>    <!-- Long  -->
>             <!ELEMENT UnitPrice           (#PCDATA)>    <!-- Float  -->
>             <!ELEMENT DeliveryDate    (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>             <!ELEMENT Note            (#PCDATA)>    <!-- String -->
>     <!ELEMENT TotalAmount            (#PCDATA)>    <!-- Float -->

Listing A-7 POAcknowledgement.dtd

>     <!ELEMENT PurchaseOrderAcknowledgement (PONumber, POCreationDate,
>     SONumber, SOCreationDate, SupplierInformation,
>     ShippingInformation?, FinanceInformation?, LineItem+,
>     TotalAmount?)>

>       <!ELEMENT PONumber     (#PCDATA)>    <!-- String -->
>       <!ELEMENT POCreationDate (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>       <!ELEMENT SONumber     (#PCDATA)>    <!-- String -->
>       <!ELEMENT SOCreationDate (#PCDATA)>    <!-- DateStamp (CCYYMMDD) -->
>     <!ELEMENT SupplierInformation(SupplierName, SupplierContact?,  BillingToInformation?)>
>         <!ELEMENT SupplierName    (#PCDATA)>
>         <!ELEMENT SupplierContact (%CONTACT)>
>         <!ELEMENT BillingToInformation (BillToAddress, AccountId)>
>         <!ELEMENT BillToAddress (%ADDRESS;)> <!-- Entity: ADDRESS -->
>         <!ELEMENT AccountID     (#PCDATA)> <!-- String -->

>     <!ELEMENT ShippingInformation (ShipToAddress?, ShippingProvider,
>     TrackingId, ShipmentNote?)>
>         <!ELEMENT ShipToAddress    (%ADDRESS;)>  <!-- Entity: ADDRESS -->
>         <!ELEMENT ShippingProvider (#PCDATA)>       <!-- String -->
>         <!ELEMENT TrackingId       (#PCDATA)>       <!-- String -->
>         <!ELEMENT ShipmentNote     (#PCDATA)>       <!-- String -->
>     <!ELEMENT FinanceInformation (FinanceTerm,
>     TaxInformation?,FinanceNote?)>
>         <!ELEMENT FinanceTerm    (#PCDATA)>    <!-- String -->
>         <!ELEMENT TaxInformation (#PCDATA)>    <!-- String -->
>         <!ELEMENT FinanceNote    (#PCDATA)>    <!-- String -->
>     <!ELEMENT LineItem (LineNumber, PartId, PartDescription?, Quantity,
>     UnitPrice, DeliveryDate,  Note?)>
>         <!ELEMENT LineNumber      (#PCDATA)>    <!-- String -->
>         <!ELEMENT PartId          (#PCDATA)>    <!-- String -->
>         <!ELEMENT PartDescription (#PCDATA)>    <!-- String -->
>         <!ELEMENT Quantity        (#PCDATA)>    <!-- Long  -->
>         <!ELEMENT UnitPrice       (#PCDATA)>    <!-- Float  -->
>         <!ELEMENT DeliveryDate  (#PCDATA)> <!-- DateStamp (CCYYMMDD) -->
>             <!ELEMENT Note            (#PCDATA)>    <!-- String -->
>     <!ELEMENT TotalAmount            (#PCDATA)>    <!-- Float -->