webMethods step by step creating sample document types
May 28, 2012 17:07 0 Comments Development George

 

TASK: create sample document types

OS: Windows

Platform: webMethods 7.1.2

 

Overview

 

Creating document types that represent those structures inside the Integration Server. In this exercise, you will create and use document types in Developer. One document type will be created manually, and the other imported from an existing XML schema.

 

1)    Take a sampe Purchase order file in xml format

2)    Go to Developer and create a new folder at acem.PurchaseOrder.docs folder and name it as request


alt


3)    Rright click on the request document type -> New -> click on All choices -> Select document type click on next and give the document name as OrderRequest.


alt


4)    Now you will be prompted with the following options.

None: If you want to create a document type manually

XML: In this case choose xml since you are importing the document schema from an xml file

DTD: If you have a file with extension DTD(Document type definition) you can select this option

XML Schema: If you have a XSD(XML Schema definition) reference file then you can select this option

Broker Document Type: To select the reference from a list of Broker document types(the documents which are available in a broker) can be taken as reference while creating a document type.


alt


5)    Select the PORequest.xml file

Create the below XML in your local Drive and get the reference:

  

 

    Ellen Adams

    123 Maple Street

    Mill Valley

    CA

    10999

    USA

 

 

    Tai Yee

    8 Oak Avenue

    Old Town

    PA

    95819

    USA

 

  Please leave packages in shed by driveway.

 

   

      Lawnmower

      1

      148.95

      Confirm this is electric

   

   

      Baby Monitor

      2

      39.98

      1999-05-21

   

 

 

alt


6)    Click on Finish


alt


7)    It will generate the document type from the xml file taking the nodes in xml files as reference to generate the document description and corresponding strings/documents/document lists.


alt


8)    Ignore the warning and remove the @version string from the document


alt


alt


9)    To manually create a document right click on the folder -> New -> document type and give a name as OrderCanonical

10)    Go the the newly created document and define new Document/Document list or variables…shown as below


alt

alt


alt


alt

 

11)    Right click on the list to expand or collapse it

alt


alt


Similar Blogs:

Creating a sample flow service

Creation of Indicies

Prev Next
About the Author
Topic Replies (0)
Leave a Reply
Guest User

You might also like

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect