Designer 10.7 | webMethods Service Development Help | Building Flow Services | Creating a New Flow Service | Creating a Flow Service from a DTD
 
Creating a Flow Service from a DTD
When you create a flow service from a DTD, Designer uses the elements and attributes defined by the DTD you specify to create the elements for the flow service.
To create a flow service from a DTD
1. In Designer: File > New > Flow Service
2. In the New Flow Service dialog box, select the folder in which you want to save the flow service.
3. In the Element name field, type a name for the flow service using any combination of letters, numbers, and/or the underscore character. For information about restricted characters, see About Element Names.
4. Click Next.
5. On the Select the Source Type panel, select DTD and click Next.
6. On the Select a Source Location panel, under Source location, do one of the following next to File/URL:
*To create the flow service from an DTD that resides on the Internet, type the URL of the resource. (The URL you specify must begin with http: or https:.)
*To create the flow service from a DTD on your local file system, type in the path and file name, or click the Browse button to navigate to and select the file.
7. Click Next.
8. Under Select the root node, select the root element of the DTD.
9. Under Element reference handling, select one of the following:
*Select Only generate document types for elements with multiple references to instruct Integration Server to create a separate document type for a referenced element only when the DTD contains multiple references to that element.
If an element is referenced multiple times, Integration Server creates a separate document type for the element. Integration Server replaces each element reference with a document reference field.
If an element is referenced only once, Integration Server defines the element in line by replacing the element reference with a document field.
*Select Always generate document types for referenced elements to instruct Integration Server to always create a separate document type for a referenced element even if it is referenced only once. In the document type, Integration Server replaces each element reference with a document reference field.
10. Click Finish to create the flow service.
Integration Server generates the IS document type and IS schema. Designer displays any errors or warnings that occur during document type generation.
Note:
If the flow service expects an XML document as input, you must create a launch configuration and debug the service in Designer before running it. For more information, see Creating a Launch Configuration for Running a Service.