Mapping SOAP header elements
When you invoke an operation you can add custom entries to SOAP header elements if the Web Service requires it. Create mapping rules for SOAP header data as follows:
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.
For example:
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
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.