Designer 10.7 | webMethods Service Development Help | Building Services | About Service Output Templates | Assigning an Output Template to a Service
 
Assigning an Output Template to a Service
Assigning an output template to a service causes the output of the service to be formatted according to the tags the template contains.
When you assign an output template to a service, keep the following points in mind:
*A service can have at most one output template assigned to it at a time.
*You can assign the same output template to more than one service.
*The output template file must reside in the IntegrationServer_directory\instances\instance_name\packages\packageName\templates directory, where packageName is the package in which the service is located.
Note:
If you assign an output template to a service and later copy that service to a different package, you must copy the output template file to the IntegrationServer_directory\instances\instance_name\packages\packageName\templates directory of the new package. (If you copy an entire package, any output templates will be included automatically.) If the template file has a file extension other than .html, rename the file extension as “.html” so that Designer will recognize its contents.
*The server treats the case of the file name differently depending on which operating system you are using. For example, on a case-insensitive system such as Windows, the server would see the names “template” and “TEMPLATE” as the same name. However, on a case-sensitive system such as UNIX, the server would see these as two different names. If you are trying to assign an existing output template and you enter a file name in the wrong case on a UNIX system, the wrong file name could be assigned as the output template for your service.
*To assign an output template to a service
1. Lock and open the flow service whose output you want to format using an output template.
2. In the Properties view, in the Name field under Output template, type the name of an existing output template file that you want to assign to the service. You do not need to include the path information or the file name extension.
3. In the Type field, specify the type of the output template file. You can select html or xml from the drop-down list. By default, html is selected.
4. If you want to edit the template, do the following:
a. In the Template source field, click .
b. On the Template Source dialog, edit the literal text or tags as desired. For details about template tags, see Dynamic Server Pages and Output Templates Developer’s Guide.
c. Click Save.
Note:
Changes you make to an output template affect all the services in the package that use the template, not just the service that is currently open in the editor.