Testing a Service Using the SOAP Request Response Service Test Wizard

Use the SOAP Request Response Service Test wizard to verify that the service produces the correct result. This method allows the SOAP input message to be edited and sent directly to the service. The response from the service then displays.

Prerequisites 

You must have deployed a service or looked up a publicly accessible service published to a UDDI registry before you can test the service.

When sending messages with dateTime or time fields using the SOAP Request/Response Service test wizard, no format conversions of the input data occurs. All fields in the input message must be in the format required for the request message. For example date/time fields must be in the proper format for XSD date and time data types, not the format of Java date/time data types. For additional information, see www.w3schools.com/schema/schema_dtypes_date.asp .

  1. Open the Service Testing wizard for testing a service the following ways:
    • 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, select 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 SOAP Request/Response 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 new settings are saved.

  5. Click Next.
  6. On the Select a Method To Test page, select the method you want to test.
  7. Click Next.

    The SOAP Request and Response page opens, which allows you to perform the test.

  8. Choose one of the following to identify the message to be tested:
    Option Description
    Generate Empty Request Message To have the system automatically generate the required information based on the based on the wsdl and method selected. You can add data to the elements as appropriate.
    Load Request Message To select a previously created request message. You can then modify portions of the request message.
    Validate Request Message To validate and check well-formedness of the message.
    Save Request Message To save the request message if changes have been made.
  9. Click Invoke.

    The response message displays in the Response Message section.

    Binary response data displays as an array.

  10. Click Save Response Message and enter a location for the saved file.
Related tasks
Searching a UDDI Registry

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.