Creating web service methods

To create a web service method:

  1. Select System > Web Service Maintenance from the SynWeb main menu.
    The Web Service List window is displayed.
  2. Click .
    The Web Service view of the Create Web Service Method window is displayed.
  3. Type in the Method Name, and a Summary of the method.

    Note:
    Web service names should start with a U. For example, UGetStudentDetails.
     
  4. Click .
    The Version view of the Create Web Service Method window is displayed.
  5. Type the Version number.

    Note:
    Each version of a web service method must have a unique version number.
     
  6. Select the Synergetic database the web service method connects to in the Database Name field.
  7. Select the Stored Procedure from the database the web service method uses.
  8. Add a Version Comment to note any changes you have made to the details in this version.
  9. Click .
    The Parameters view of the Create Web Service Method window is displayed.
  10. Select the fields the web service method uses as parameters.
  11. Type in a Default value to be used when no value is passed to the web service method.
  12. Type in a Description to indicate why the parameter is required.
  13. Select Read Only if no value but the default should be passed to the web service method.
  14. Click .
    The Output view of the Create Web Service Method window is displayed.
  15. Select the database columns that the web service method returns.
  16. Click.
    Review the web service method and either click:
  • to return to previous views and edit the web service method
  • to save the web service method.
    The web service method is displayed in the Web Service List window. See Web Service List window