Profile as SOAP Web Service (static response)

This section explains how to create a profile that is acting as a SOAP web service and sends a static response back to the client that called this web service.

Please import the following profile and set it to active: Profile-Profile_as_web_service_static_response.pak

Phase 1


Open the profile and navigate to phase 1. There you can see the event-driven Input Agent of type HTTP.


images/download/attachments/159865815/1878-version-1-modificationdate-1701077629716-api-v2.png


(1) Specifies the URL under which your web service can be accessed. So here https://<URL/IP Integration Server>/dw/Request/my_web_service

(2) Use option POST.

(3) Must be set.

(4) Use this value. This has the effect that the WSDL file is only generated on the basis of the source structure. In addition, the response of the web service is then 'static', i.e. it only contains the job number of the profile started by the web service call and does not contain any data from the target tree. More details in section WSDL File. Note: The response has the encoding UTF-8.

(5) Must be set.

Phase 2


The document type here must be XML (is set in the Main Settings), as we want to process incoming SOAP XML messages.

Phase 3


Now switch to phase 3, where an XML source structure is required.


images/download/attachments/159865815/1877-version-2-modificationdate-1701077110860-api-v2.png


The source structure is based on the following XML file. How to create the source structure with this file is described in section XML to XSD (to Structure).

The target structure was simply created by using a 1:1 mapping, because it is not relevant for our static response.


<?xml version="1.0" encoding="UTF-8"?>
<Data>
<Article name="Jacket" group="Clothing">
<Number ean="4711">123</Number>
<Description>Waterproof</Description>
</Article>
</Data>

WSDL File


Now we can look at the WSDL file of the web service. The WSDL file is created automatically by Lobster_data.

To do this, enter the following URL in the browser. This is the same URL that is used to call the web service (1), but the suffix ?wsdl is added at the end.


https://<URL/IP Integration Server>/dw/Request/my_web_service?wsdl


Below you will find further information on the WSDL file, which you can ignore for the time being.