The Create Form and Report on Web Service Wizard creates an input form, a submit button, and a report for displaying results. You can execute this wizard directly after creating the Web service reference from a WSDL or a RESTful style Web service, or by adding a page.
Use this wizard when you expect a nonscalar result from the Web service. The Amazon Product API Web service is a good example. This Web service returns many results based on the search criteria entered in an input form.
Creating a Form and Report After Creating a Reference
To create a form and report after creating a Web Service Reference:- Create the Web service reference. See "Creating a Web Service Reference Based on a WSDL" and Creating a RESTful Web Service Reference.
- After the Web service reference has been added, select Create Form and Report on Web Service.
- For Choose Service and Operation:
- Web Service Reference - Select the Web service reference.
- Operation - Select the method to be executed. For REST style Web references, select doREST.
- For Page and Region Attributes, review the displayed attributes. If the page you specify does not exist, the wizard creates the page for you.
- For Input Items:
- Identify which items to add to the form. To include an item, select Yes in the Create column. Otherwise, select No.
- If necessary, edit the item label.
- If applicable, specify the Item Names and Item Labels for basic authentication. Note that this step only appears if basic authentication was specified for this Web service reference when it was created.
- For Window Service Results:
- Temporary Result Set Name - Enter a name for the collection that stores the Web service result.
- Result Tree to Report On (Not displayed for REST style Web service references) - Select the portion of the resulting XML document that contains the information you want to include in the report.
- For Result Parameters to Display, select the parameters to be included in the report.
- Click Finish.
Creating a Form and Report by Adding a New Page
If you have an existing Web service reference, you can create an input form and report by adding a new page.To create a form and report by adding a new page:
- Create the Web service reference. See "Creating a Web Service Reference Based on a WSDL", "Creating a Web Service Reference Manually", and"Creating a RESTful Web Service Reference".
- Create a new page.
In the Create Page Wizard:
- Select Form.
- Select Form and Report on Web Service.
- For Choose Service and Operation:
- Web Service Reference - Select the Web service reference.
- Operation - Select the method to be executed. For RESTful style Web references, doREST will be selected automatically. The Operation option will not appear for Manual style Web references.
- For Page and Region Attributes, review the page and region attributes. If the page you specify does not exist, the wizard creates the page for you.
- For Input Items:
- Identify which items to add to the form. To include an item, select Yes in the Create column. Otherwise, select No.
- If necessary, edit the item label.
- If applicable, specify the Item Names and Item Labels for basic authentication. Note that this step only appears if basic authentication was specified for this Web service reference when it was created.
- Follow the on-screen instructions.
- Click Finish.
No comments:
Post a Comment