Call Web Service with Profile in Function
Create a new profile with a simple mapping or use an existing profile. Choose any destination field and select function call SOAP-WebService(a,b,c,d,e,f,g,h,i,j,k,[l,m,n,o]). Please enter the following parameter values (parameters k to o can be left empty).
Parameter |
Value |
Description |
a |
http://localhost/dw/Request/addWebService |
The URL of the web service (b and c set the user login, which are empty here, because not needed). Note: Regarding the web service URL see section Call Web Service with Profile in Input Agent. |
d |
./conf/add.xml |
Relative path of the XML template file (starting with ./conf/). |
e |
text/xml |
The MIME type. |
f |
A,B |
Comma-separated list of destination field or variable names to be used for replacing the placeholders in the template file. |
g |
AddResult |
Comma-separated list of XPath expressions or element names (starting with # if it is an attribute) in the web service response, to be added to the result list. |
h |
WS |
The name of the list, to which the values of the response should be added. |
i |
true |
If true, a failing web service call will lead to an error. If false is specified, the function returns false, but the mapping continues. |
j |
false (not via DMZ) |
If true, each answer element defined in parameter g leads to the creation of a single list, containing all values that are received for the given answer element. |
The template file (Parameter d):
We need a template file that defines the structure of the request. The content of that file is like in section Call Web Service with Profile in Input Agent. Copy the request from example 1 and set the placeholders @A@ und @B@ as values for the elements intA and intB (1).
The template:
Configure Web Service Function - Part 2
Select a second function get value from list(position a, name of list b, delimiter c, item d). We will use this function to get the result of the web service call, which was saved in list WS. Please set the parameter values as shown in the screenshot above.
Parameter |
Value |
a |
1 |
b |
WS |