Use the Dialog Service Test wizard as a quick and easy way to verify that the service produces the correct functionality and to quickly invoke that functionality.
Prerequisites:
Create a UDDI Registry Connection Profile
Deploy the service or look up a publicly accessible service published to a UDDI registry
You can access the wizard for testing a service the following ways:
Go to New|Other|Sybase|Service Test.
From the public folder in 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 on the WSDL and select Test Service.
From Enterprise Explorer, right-click the deployed service under the package and select Test Service.
To test a service using the Service Test wizard:
Right-click on the WSDL document and select Test Service.
Select Dialog Service Testing wizard and click Next.
The Options page allows you to enter or edit the following information:
Service Testing Options
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 ASA-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 ASA-based Web services, you can disable the secured status by modifying the service to AUTHORIZATION OFF. Note that ASA 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. |
For additional information about all of these options, reference http://ws.apache.org/axis/java/reference.html.
Click Save Settings.
The saved settings remain the default values until the next settings are saved.
Click Next.
On the Select a Method to Test page, expand the service node.
Select a method to test and click Next.
The Parameters for Method page appears.
In the Input Parameters section, click Edit.
A dialog appears allowing you to specify values.
In the dialog, enter the parameter value, or values, and click OK. Consider the following:
When entering the the base64Binary value, it may be necessary to enter the decimal equivalent.
If the method uses a byte[] parameter, you will be propmted 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 Using the Expression Editor or go to http://www.w3schools.com/schema/schema_dtypes_date.asp.
Click Invoke to call the method using the input you entered.
The results appear in the Output Parameter field.
Review the output.
Click Back to test using another method or click Finish to close.
Testing a Service Using the Web Service Client Wizard
Testing a Service Using the SOAP Request Response Service Test Wizard
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com