The recommended way to import a SOAP Web service in Virtual DataPort is by creating a Web service data source. However, if the Web service definition is not supported by this type of data source, it can be imported as an XML data source instead.
The following characteristics are not supported by Web service data sources in Virtual DataPort:
When trying to import such a Web service, you will normally get the following error:
Could not generate wrapper metadata from given WSDL document.
In some scenarios, importing the Web service will be successful, but you will not be able to create a base view from some of its operations, as they will also have the characteristics listed above.
In those cases, the SOAP Web service can be imported into the server as an XML data source. To help with this, you can use a third-party SOAP client to execute the Web service and get the SOAP messages. In this document, we are going to use SoapUI.
The following steps are required to import a SOAP Web service as an XML data source:
Use the + button to add it, and click Save to return back to the data source configuration.
Note: You can specify interpolation variables with the “@” character to have input parameters as part of the created base view. To do so, add the variables as part of the Post body in step 5. For example, with @Country:
The base view will then contain an input parameter required to execute the view:
When querying the view, the input will be passed dynamically as part of the WHERE condition: