我是apache骆驼的新手。我想通过发出 jetty Post 请求来使用 apache camel 创建服务总线(中间件),然后从服务器获取响应。
这是我所做的
<route streamCache="true">
<from uri="jetty:{{wrapperEntry.protocol}}://{{wrapperEntry.host}}:{{wrapperEntry.port}}/rsb/SubmitNewCaseForAndroid?continuationTimeout=0" />
<convertBodyTo type="java.lang.String" />
<to uri="direct:helloworld"/>
</route>
<route streamCache="true">
<from uri="direct:helloworld"/>
<transform>
<simple>
Hello World
</simple>
</transform>
<convertBodyTo type="java.lang.String" />
</route>
请求成功发送到服务器并提交我的案例,否则我无法从服务器获取响应。
注意:响应来自服务器是字符串它来自这样的'code':0,'description':'操作成功完成','complaintId':'45285'
感谢提前