Left_Next_Arrow_Blue_Bkgd_Icon

Right_Next_Arrow_Blue_Bkgd_Icon

Calling Web services from workflows and form events

Associating a workflow with Winshuttle Web Service

You can use the Process Designer to configure Winshuttle Web services. When they are configured in the workflow, the Web services may be called from InfoPath form events or from within the workflow.

To add a Web service

  1. On the Tools menu, click Manage Field Mappings.
  2. In the Manage Field Mappings dialog box, click Add.
  3. Enter Name of the Web service, Description, WSDL of the Web service. For example: http://10.26.1.72:8081/winserver/Designerservice.svc.
  4. XML group name is the name of the parameter group that will be created in the InfoPath form data source. Do not use spaces, numbers, or special characters in this name.
  5. You can select Windows Authentication or Network credentials for the user login type.
  6. Click Test to validate credentials for retrieving WSDL fields from CENTRAL.

  7. Do one of the following:

    -or-

  8. If it must be mandatory for users to enter SAP credentials for the form and to call the Web services, select the option Use SAP Credentials. If you do not select the Use SAP credentials option, SAP credentials are read from CENTRAL.
  9. The Generate InfoPath Form button generates and saves the form created for InfoPath. You can then launch and modify the form as required.
  10. Winshuttle Designer maps fields with InfoPath Designer fields by default.

    Note: If field changes trigger Web services, and the Web services are dependent on the results of other web serviceWeb services, ensure that the Web services are mapped in the correct order. Use the Form Field list to reorder fields as needed.

  11. If you select an existing InfoPath form, the existing fields of the form are also available for mapping.

  12. If you reuse a Web service with identical input and output fields, the form fields will have a suffix that includes a number with underscore. Click the arrow to select the accurate field name.

Modifying or deleting a Web service

  1. Click Edit on the Winshuttle Web services screen to modify an existing Web service.
  2. Click Delete to remove a selected Web service.

Using TRANSACTION loops in Web services

You can add any number of transaction Web services with loops to one form; however, two transaction Web services with loops should not be added to the same XML group. Each transaction Web service with a loop requires its own XML group, otherwise there will be problems during the SAP data upload process.

It is also important to note that all fields inside loops will be generated again with a new name if that field name does not exist in exactly the same XPATH (the location in InfoPath). Additionally, mapping fields in a repeating section on fields of any other section within a loop must exist under the same repeating section.

See Also

Publishing and modifying workflows

Designing, Creating, and Refining Your Process