--- title: "Calling SOAP web service with profile in function" slug: "intro-external-systems-webservice-function" updated: 2026-07-30T06:49:42Z published: 2026-07-30T06:49:42Z canonical: "docs.lobstersoftware.com/intro-external-systems-webservice-function" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Calling SOAP web service with profile in function Please import the following Profile and set it to active. This profile serves us as a local web service: [Profile-Profile_as_web_service_dynamic_response.pak](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/Profile-Profile_as_web_service_dynamic_response.pak). ## Calling the web service Now import the following profile. We use this profile to call the local web service in a function: [Profile-Calling_web_service_with_function.pak](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/Profile-Calling_web_service_with_function.pak) Please open the example profile and navigate to Phase 3. In the target structure, you will see two fields *A* and *B* with fixed values that we use to call the web service. ![images/download/attachments/201678333/1875-version-1-modificationdate-1747798402854-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1875-version-1-modificationdate-1747798402854-api-v2.png) We use the [call SOAP-WebService()](/docs/en/basic-web-service) function on the "call_web_service" field. We set the following parameter values there. In the "read_result_from_list" field, we simply read the result obtained by the web service from list **h**. | Parameter | Value | Description | | --- | --- | --- | | a | https://localhost:443/dw/Request/addition_web_service | Specifies the URL of the web service. That is our local web service (see [Profile as SOAP web service (dynamic response)](/v1/docs/en/intro-external-systems-webservice-profile-with)). | | d | ./conf/add.xml | See below. | | e | application/soap+xml | Specifies the MIME type of the outgoing requests. | | f | A,B | Here you list the target structure fields whose values are to be used to replace the placeholders in the template. See target structure above and parameter **d**. | | g | result | This is the name of the XML element (or several names separated by commas) that we want to read from the web service response. XPath expressions can also be used if you wish. **NOTE:** See [Profile as SOAP web service (dynamic response)](/v1/docs/en/intro-external-systems-webservice-profile-with) . | | h | mylist | Specifies the name of the list in which the read values (see parameter **g**) are to be saved. | ### Description of parameter **d**: We need a template file for the request that specifies what it should look like. This template is the same as in section [Calling SOAP web service with profile in an input agent](/v1/docs/en/intro-external-systems-webservice-agent). Copy the template there. **NOTE:** The path must begin with "./conf/". ```xml                                  add_some_value_here          add_some_value_here             ``` Now replace the values "add_some_value_here" in the elements "intA" and "intB" with the placeholders "@A@" and "@B@" for the names of the target structure fields whose values we want to use. See also target structure above and parameter **f**. ```xml                                  @A@          @B@             ``` ## Setting HTTP request headers Some web services require additional values that are expected in the HTTP header, such as eBay (application ID, etc.). These can be set as follows. See parameter **p** in function [call SOAP-WebService()](/v1/docs/en/basic-web-service). A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. Mapping: Rules transfer the data from the source structure to the target structure. This is the core of the profile.