I created a http proxy with url
http://localhost:8280/services/proxy.proxyHttpEndpoint.
This proxy does some tasks and don't return any result.
I can curl the url from my command line and all tasks are done
correctly.
I have to call this proxy repeatly so I decided to use the
MessageInjector to call my proxy.
The task's configuration is:
<task name="BSBD_STT_FileTransfer_Task"
class="org.apache.synapse.startup.tasks.MessageInjector"
group="synapse.simple.quartz">
<trigger cron="*/10 * * ? * *"/>
<property
xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
name="format" value="get"/>
<property
xmlns:task="http://www.wso2.org/products/wso2commons/tasks" name="to"
value="http://localhost:8280/services/proxy.proxyHttpEndpoint"/>
<property
xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
name="message">
<getFile/>
</property>
</task>
After submit the task. My main sequence is called instread of the proxy.
This proxy requires no input. I first try not to set message property
but an error, "no message set", is thrown.
Why the main sequence is called?
What configuration must change then the proxy is called?
Thank you
Kriangyut