Introduction
This sample demonstrates how to receive incoming XML events that adheres to the WSO2 Event format via SOAP transport. This sample does not do any processing on the incoming event. The log event publisher is used to log the received events, and to verify the messages.
Prerequisites
Set up the prerequisites required for all samples
Building the sample
Start the WSO2 CEP server with the sample configuration numbered 0014. For instructions, see Starting sample CEP configurations. This sample configuration creates the following.
- A stream with the ID
org.wso2.event.sensor.stream:1.0.0
- An event receiver named
soapReceiver
- An event publisher named name soap
Logger
to log the received messages
Executing the sample
Navigate to the <CEP_HOME>/samples/cep/producers/soap/
directory, and execute the following Ant command using another tab in the CLI: ant -Durl= http://localhost:9763/services/soapReceiver/receive -Dsn=0014
The other optional parameters that can be used in the above command are defined in the <CEP_HOME>/samples/cep/producers/soap/build.xml
file.