Testing a Service Using the Dialog Service Test Wizard

Use the Dialog Service Test wizard to verify that the service produces the correct functionality and to quickly invoke that functionality.

Prerequisites 
  1. Open the wizard for testing a service using one of these methods:
    • Select New > Other > Sybase > Service Test.
    • From the public folder in the Service Explorer, right-click a SOAP service and select Test Service.
    • From Enterprise Explorer, select the WSDL for a published service and select Test Service.
    • From WorkSpace Navigator, go to the .wsdl file. Right-click the WSDL file and select Test Service.
    • From Enterprise Explorer, right-click the deployed service under the package and select Test Service.
  2. Select Dialog Service Testing wizard and click Next.
  3. Enter or edit the following information on the Options page:
    Table 1. Service testing options
    Option Description
    Timeout Enter the number of seconds after which the process automatically stops if no results are returned. Default is 60 seconds.
    Security Enter a user name and password for accessing secured services. For SQL Anywhere-based Web services, you can disable the secured status by modifying the service to AUTHORIZATION OFF.
    Security at WSDL level Enter a user name and password for accessing secured WSDL documents. For SQL Anywhere -based Web services, you can disable the secured status by modifying the service to AUTHORIZATION OFF. Note that SQL Anywhere Web Services create password-protected WSDL documents.
    Wrapped Document This option turns off the special treatment of what is called wrapped document/literal style operations. By default, WSDL2Java recognizes certain conditions and unwraps the top-level element, treating each of the components of the element as arguments to the operation. Default is "not enabled."
    Proxy Settings Select this option to enable proxy settings, which means that the service invocation SOAP request is redirected to the specified host and port. Default is "not enabled." If checked, enter the proxy host name and port number. The proxy settings allow integration with SOAP Inspector, which is an existing view within Sybase WorkSpace. However, if SOAP Inspector is not enabled or is not listening to the specified port, the service invocation fails. These settings also allow integration with other programs such as TCP/IP Monitor. Using SOAP Inspector allows you to capture the SOAP request messages for use on the SOAP Request and Response page.
    Note: For additional information about these options, see http://ws.apache.org/axis/java/reference.html.
  4. Click Save Settings.

    The saved settings remain the default values until the next settings are saved.

  5. Click Next.
  6. On the Select a Method to Test page, expand the service node.
  7. Select a method to test and click Next.

    The Parameters for Method page appears.

  8. In the Input Parameters section, click Edit.

    A dialog appears allowing you to specify values.

  9. Enter the parameter value, or values, and click OK.

    Consider:


    • When entering the the base64Binary value, it may be necessary to enter the decimal equivalent.
    • If the method uses a byte[] parameter, you are prompted to enter a Base64-encoded equivalent to the original type text. In this test case, an Array Input dialog is not used to enter an array.
    • When using dateTime or time functions with the Dialog Tester or the Web Service Client Wizard, the time is sent as a UTC in the SOAP Request. For example, if a dateTime of 2006-03-07T17:00:00 (Mountain Standard Time) is entered, the SOAP Request would contain the dateTime 2005-06-22T19:34:08.000Z (Greenwich Mean Time). The UTC date format should be used in the rule for an AXIS client.

      For additional information, see http://www.w3schools.com/schema/schema_dtypes_date.asp.

  10. Click Invoke to call the method using the input you entered.

    The results appear in the Output Parameter field where you can review the output.

  11. Click Back to test using another method or click Finish to close.
Related concepts
SOAP Service Testing
Test Overview
Related tasks
Testing a Message Service Prerequisites

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.