Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 Publishing Events .  

Configuring adapter properties

Specify the Dynamic  Adapter Properties, when creating a SOAP event publisher using the management console as shown below.

SOAP event publisher

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  Publishing Events in Various Event Formats .

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 propertyExample

Url

Destination web service URL
url
http://localhost:9763/services/Axis2LogService/log
User NameUsername 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"
  • No labels