Apama 10.3.1 | Apama Documentation | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The Web Services Client IAF Adapter | Customizing mapping rules | Mapping SOAP header elements
 
Mapping SOAP header elements
When you invoke an operation, you can add custom entries to SOAP header elements if the web service requires it.
* To create mapping rules for SOAP header data
1. Define Apama events that contain string fields to hold the SOAP header data. For example:
event Stock{
string body;
string header;
}
 
event StockValue{
string resBody;
string resHeader;
}
2. In the adapter editor's Mapping Definitions tab, right-click the operation entry to which you want to add a SOAP header and select Add. The Add Node dialog appears.
3. In the Add Node dialog's Type field select SOAP Header as the expression type.
4. In the Add Node dialog's Header Name field enter the name for the SOAP header and click OK.
The new entry is added to the web service operation's parameters.
5. Map this entry to the event string field that will contain the SOAP header. Following is a sample input mapping:

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.