SOAP Event Publisher
SOAP event publisher sends SOAP events in the XML format via HTTP, HTTPS and local transports.
Creating a SOAP event publisher
For instructions on creating a SOAP event publisher, see Configuring CEP to Create Alerts.
Configuring global properties
The following global properties can be set for the SOAP event publisher type in the <CEP_HOME>/repository/conf/input-event-adapters.xml
file. These properties apply to all the publishers of the soap
type. If a global property available by default is removed, the default value of the property is considered.
Custom properties cannot be added as global properties.
Property Key | Description | Data Type | Default Value |
---|---|---|---|
minThread | The minimum number of threads (including idle threads) that should be available in the thread pool at a given time. | Integer | 8 |
maxThread | The maximum number of threads (including idle threads) that should be available in the thread pool at a given time. | Integer | 100 |
keepAliveTimeInMillis | The maximum number of milliseconds that idle threads should be kept alive when the total number of threads in the pool exceeds the number of cores in the machine. | Integer | 20000 |
jobQueueSize | The maximum number of milliseconds that idle threads should be kept alive when the total number of threads in the pool exceeds the number of cores in the machine. | Integer | 10000 |
axis2ClientConnectionTimeout | The number of milliseconds allowed to elapse before the Axis2 client connection times out. | Integer | 10000 |
reuseHTTPClient | If this property is set to true , it is allowed to reuse the connection to the HTTP client for subsequent requests. | Boolean | true |
autoReleaseConnection | If this property is set to true , inactive connections are automatically killed. | Boolean | true |
maxConnectionsPerHost | The maximum number of connections allowed per host configuration. | Integer | 50
|
Configuring adapter properties
Specify the Dynamic Adapter Properties, when creating a SOAP event publisher using the management console as shown below.
After entering the above adapter properties, select the Message Format which you want to apply on the published events. Also, click Advanced to define custom output mappings based on the Message Format you selected. For more information on custom output mapping types, see Output Mapping Types.
You can also d efine the respective adapter properties of the event publisher based on the transport type within the <to>
element of the event publisher configuration in the <PRODUCT_HOME>/repository/deployment/server/eventpublishers/
directory as follows.
<eventPublisher name="SOAPOutputEventAdapter" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventpublisher"> .......... <to eventAdapterType="soap"> <property name="httpHeaders">header1: value1, header2: value2</property> <property name="username">soap-user</property> <property name="soapHeaders">header1: value1, header2: value2</property> <property encrypted="true" name="password">hOvbApz3iQVMok/RyJn/AT51VMAGZHVMLLP2a3hkmBP+pKiKSNhUOuZVeHTPAe6Ko+g1s6ut1UAdPP1ctWnZCU0Slw69FFJg7FJkLUzTgN2ZnyEMSRYbt/Kyq/WKJEO8JeNptUaJYsEGhIkRpJg4ZVeOzXekBJt3TxZ3C4H+06I=</property> <property name="url">http://localhost:9763/services/Axis2LogService/log</property> </to> </eventPublisher>
The above adapter properties are described below.
Adapter Property | Description | Configuration file property | Example |
---|---|---|---|
Url | Destination web service URL | url | http://localhost:9763/services/Axis2LogService/log |
User Name | Username token which is required to send event to a HTTPS endpoint. | username | soap-user |
Password | Password token which is required to send event to a HTTPS endpoint. | password | soap-password |
SOAP Headers | Necessary SOAP headers. | soapHeaders | header1: value1, header2: value2 |
HTTP Headers | Necessary HTTP headers. | httpHeaders | header1: value1, header2: value2" |
Related samples
For more information on soap
event publisher type, see the following sample.