QUERY > Working with CENTRAL > Publishing a QUERY script as a web service
Publishing a QUERY script as a web service
If your environment includes Winshuttle CENTRAL with Winshuttle SERVER, you can publish a QUERY script as a web service. The script or web service can then be consumed by any forms designer application to create forms that are based on QUERY script fields. Examples of forms designer programs include InfoPath and Adobe LiveCycle (and Adobe Acrobat Pro to enter data into the finished form). End users can then easily fill out these forms and run them to get data from SAP.
A web service is bound to one SAP server.
To create a script for web publishing
- In QUERY, create the query.
- To map the recording, change the destination type to XML.
- Save the query script.
- In the Run pane, click Submit.
- Complete the QUERY script information page of the wizard. Click Next. Complete the information and submit the file for the approval process.
- Open the submitted file from CENTRAL and select a reviewer. Ensure that the Allow publishing as Web Service box is selected in the Query script approval window. Click Task Complete.
- In the notification email, click the appropriate link to approve, reject, or reassign the file. Ensure that the Allow publishing as Web Service box is selected. Select the appropriate system usage level for that file. Click Task Complete.
To publish a script as a web service
- When the script is approved, click the Publish as web service button that appears in the Run pane.
- Type a name for the web service and a description of the service. Click Publish. Select the SAP system on which this service will be published.
The data is posted by using the delegate account.
- Select to cache query results, if you want. Specify the time out period in minutes.
The web service, or WSDL, URL is generated. Use this URL to create your form in a form designer program.
You can update the web services that you published within CENTRAL. The CENTRAL admin can edit all web services.
Query Caching
Query caching improves performance by reducing the load on your SAP system. Query caching is enabled by your administrator.
Running forms
To run a form in InfoPath or LiveCycle. To run a form, the following must be true:
- A CENTRAL license is assigned to you.
- You belong to the Runner group.
- Your SAP credentials for the SAP system where you want to run the script are saved to CENTRAL.