The Web Service Execution (XML) step is designed to execute an operation on a SOAP-based Web Service using an HTTP POST or JMS message.
Access to a WSDL is not required; rather, it is a recommended but optional piece of configuration information. If a WSDL is configured, it helps in the process of building a SOAP message to be sent to the service. This step lets you manipulate the raw SOAP message (XML) directly. This feature provides flexibility and power, but does expose you to the details of how web services work.
In general, the top portion of the editor is dedicated to how and where to send the SOAP message. The bottom portion is dedicated to the contents of the message.
The Web Service Execution (XML) step has a default name using this convention: Web Service webServiceOperation name. If another step uses the default step name, DevTest appends a number to this step name to keep it unique. You can change step names at any time.
After the test step opens, it has two tabs, with each tab having multiple sub tabs.
The PRO icon switches between basic and advanced options. Some tabs and options are only available when PRO is selected.
The Connection tab has fields for the connection. The tab has sub tabs on the top bar and bottom bar.
Connection
The WSDL URL is an optional but recommended field (denoted by its slightly gray color).
The WSDL URL must be a URL (either file:/, http:/, or https:/). From the More Options menu you can:
When you enter a WSDL URL that is not already a WSDL bundle, DevTest creates a WSDL bundle and stores it locally in the Data/wsdls directory for the project. This action caches the WSDL locally for quicker access. DevTest parses the WSDL and uses its schema is used to build sample SOAP messages. The Visual XML editor also uses the WSDL to help you manually edit the SOAP message. DevTest first tries to load a cached WSDL bundle whenever processing the WSDL. If the external WSDL has changed and you want to force the local WSDL cache to update, use the Refresh WSDL Cache button. You can manually drop a WSDL bundle into the Data/wsdls any time. When the step tries to process the "live" WSDL URL, it uses the cached bundle instead.
If the WSDL URL is populated, the WSDL is processed and the Service, Port, and Operation selections are populated. These optional but recommended fields can be used to build a sample SOAP request message. Selecting a port also updates the Endpoint URL to match the definition in the WSDL. Changing the WSDL URL causes these items to be refreshed. If the Endpoint URL and SOAP Message are unchanged, they update also to correspond to the new WSDL, service, port, and operation that are selected.
If the endpoint was changed and no longer matches the endpoint in the WSDL, a Warning button appears next to the field. A tooltip on the button indicates the differences between the entered value and the WSDL definition. Clicking the button updates the field to match the WSDL definition.
If the SOAP Request Message no longer matches the default, it is not updated automatically. You can force the SOAP Request Message to be updated by using the Build Message button next to the Operation field.
Any of the following options can be used here:
This field indicates the server port on which the service is available.
This field indicates what action to be taken when some error occurs during execution.
The URL to the SAML Query API of the Identity Provider.
When building sample SOAP messages, various build options are used to determine what to do in various situations.
Note: The SOAP request is not valid if you include multiple choice elements. However, it provides a sample for each possible choice, which makes it easier to build a message when you do not use the first choice.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|