Use the SOAP Request Response Service Test wizard of testing to verify that the service produces the correct result. You must have deployed a service or looked up a publicly accessible service published to a UDDI registry before you can test the service. This method of testing allows for the SOAP input message to be edited and sent directly to the service. The response from the service then displays.
You can access the wizard for testing a service the following ways:
From Enterprise Explorer, right-click on the deployed service under the package and select Test Service.
From Enterprise Explorer, in a UDDI registry, select the WSDL for a published service and select Test Service.
Go to New|Other|Sybase|Service Test.
From the public folder in Service Explorer, right-click on a SOAP service and select Test Service.
From WorkSpace Navigator, go to the .wsdl file. Right-click the WSDL and select Test 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.
To test a service using SOAP Request Response:
Launch the Service Testing Wizard using one of the methods described above.
Select SOAP Request/Response 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, select the method you want to test.
Click Next.
The SOAP Request and Response page allows you to perform the test.
Identify the message to be tested. Choose one of the following:
Click Generate Empty Request Message and the system automatically generates the required information based on the based on the wsdl and method selected. You can add data to the elements as appropriate.
Click Load Request Message and select a previously created request message. You can then modify portions of the request message.
Click Validate Request Message to validate and check well-formedness of the message.
Click Save Request Message to save the request message if changes have been made.
Click Invoke.
The response message is displayed in the Response Message section.
Click Save Response Message and enter a location for the saved file.
Binary response data displays as an array.
Testing a Service Using the Dialog Service Test Wizard
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com