Apama 10.3 | Apama Documentation | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The Web Services Client IAF Adapter | Customizing mapping rules | Mapping HTTP header elements
Mapping HTTP header elements
When you invoke an operation you can add custom entries to HTTP header data if the web service requires it. The following steps provide an example of obtaining HTTP header data from an operation's response message.
* To obtain HTTP header data
1. Define Apama events that contain string fields to hold the HTTP header data. For example:
event Stock{
string stockexchange;
event StockValue{
string response;
2. In the adapter editor's Input mapping tab for the operation you want to invoke, map event fields to operation parameters as needed to invoke the operation. For example:
3. In the output mapping, retrieve the HTTP header information by mapping it to a string field event. For example, to retrieve server details, the output mapping would look like the following:

Copyright © 2013-2018 | 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.