How to create a soapUI project to test the data service - 6.2

Talend MDM Platform Studio User Guide

EnrichVersion
6.2
EnrichProdName
Talend MDM Platform
task
Data Governance
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

In the previous section, we have illustrated how to create a consumer Job to request the Web service we created. This section will show you how to create and execute a Test Request for the Web service using SoapUI. You can download SoapUI from http://www.soapui.org/.

Discovering the scenario

In this scenario, we will send a request to the Web service using soapUI to test whether the expected response can be retrieved. To do this, we need to create a soapUI project that will send data to request the Web service.

Creating a soapUI project

From the Projects node of the soapUI Navigator, you are able to create soapUI projects that allow you to execute soapUI testing.

In this scenario, we will create a soapUI project and add the WSDL file that has been used in the previous sections to the project to access the given Web service.

To create the soapUI project:

  1. In the soapUI Navigator, which is the tree structure at the left in the soapUI GUI, right click the Projects node and select New soapUI Project.

  2. The [New soapUI project] wizard opens. Enter a project name in the Name field, for example, airport in this use case. In the Initial WSDL/WADL field, click Browse to navigate to the existing WSDL file airport_0.1.wsdl. Keep the default settings of the other options and click OK.

  3. The new project appears in the navigator and the WSDL is added to it. A sample request Request1 is created for the getAirportInformationByISOCountryCode operation.

  4. Double click Request1 to open the code editor to the right of the navigator. The URL of the Web service is shown in the address bar and the sample request Request1 is shown in the Request panel. The ? indicates that an input parameter air:CountryAbbrviation is needed for this operation. The Response panel is empty.

  5. Replace ? with CN as the input in the Request panel and click the icon to submit the request to the specified endpoint URL.

  6. The response of the submitted request is shown in the Response panel.

As we have configured in the data service provider Job, Beijing Capital and Shanghai Hongqiao are the airport names corresponding to the country code CN. So here we have got the expected response, which means the Web service can be implemented successfully.