Example of publishing a simple flat document
This example describes how to publish a web service that includes default operations of Create, Get, GetList, Set, and Service for an employee record.
To publish a simple flat document
- Create a form that displays your employee data.
This is the base form used to create your web service (see Forms-and-field-mappings-for-web-services). The following figure shows a sample form called Employee. All the fields are character fields. - On the Forms tab, right-click the form name to display its shortcut menu.
- Select Create Web Service from the menu.
A new Web Service tab appears, with default settings based on your form.
Developer Studioautomatically fills in the name of the base form (Employee). The Label and Description fields are optional. Default operations are automatically displayed on the WSDL Operations panel. - Select an operation from the WSDL Operations list, and expand the corresponding panel.
The fields on your Employee form are mapped to XML-compliant element names in a default XML schema. (You do not need to modify the default mappings for this scenario.) - Close the WSDL Operations panel.
- Set the permissions to Public.
The Permissions property is modified from the Properties tab corresponding to EmployeeWebService. This step is important if you publish your web service over an Internet or intranet for general use. - Select File > Save, and name your web service EmployeeWebService.
- Click the WSDL Publishing Location tab.
A sample URL for your WSDL file is displayed in the Specify mid tier's WSDL handler URL field. - Modify the URL for your configuration:
- Replace <midtier_server> with the name of the web server where the mid tier is running.
Add /public after WSDL.
In this scenario, if the mid tier server is TestServer, you would use this URL:http://TestServer/arsys/WSDL/public/TestServer/EmployeeWebService
- Click File > Save to save your changes to EmployeeWebService.
Administrators with the appropriate SOAP protocol can now access this WSDL file with any browser. - (Optional) Click View to display the contents of your WSDL file.
- (Optional) If prompted, enter a user name and password and click Login.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*