-
-
Save adipriyantobpn/6f104c9d0ec0756840b80833a534617a to your computer and use it in GitHub Desktop.
Simple WSO2 ESB config to demonstrate HTTP POST -> MQTT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<api xmlns="http://ws.apache.org/ns/synapse" | |
name="mqttP2" | |
context="/mqttqos"> | |
<resource methods="POST" uri-template="/{qos}"> | |
<inSequence> | |
<log/> | |
<property name="OUT_ONLY" value="true"/> | |
<property name="FORCE_SC_ACCEPTED" value="true" scope="axis2" type="STRING"/> | |
<property name="messageType" value="application/json" scope="axis2"/> | |
<send> | |
<endpoint> | |
<address uri="mqtt:/StockDetailInterface?mqtt.server.host.name=mqtt-broker&mqtt.server.port=1883&mqtt.client.id=esb.test.sender&mqtt.topic.name=TopicA&mqtt.subscription.qos=0&mqtt.blocking.sender=true"/> | |
</endpoint> | |
</send> | |
</inSequence> | |
<outSequence> | |
</outSequence> | |
</resource> | |
</api> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment