我有以下骆驼路线:
<camelContext trace="false" id="blueprintContext" xmlns="http://camel.apache.org/schema/blueprint">
<route id="addressRoute">
<from uri="cxfrs:bean:addressSearchEndpoint"/>
<removeHeaders pattern="CamelHttp*"/>
<recipientList>
<simple>http4://<someURL>/PostcodeAnywhere/Interactive/RetrieveByAddress/v1.20/json.ws?Key=<someKey>&amp;Address=WR2%206NJ&amp;Company=&amp;UserName=PROVI11136</simple>
</recipientList>
<log message="${body}"/>
</route>
使用收件人列表来调用外部REST服务。 我遇到的问题是虽然我在日志中看到了响应:
[qtp269562434-42] addressRoute INFO [{&#34; Udprn&#34;:&#34; 52269655&#34;&#34;公司&#34;:&#34;&#34;&#34;部&#34;:&#34 ;&#34;,&#34; Line1&#34;:&#34; 2 Wylcotts&#34;,&#34; Line2&#34;:&#34; Moseley Road&#34;,&#34; Line3&# 34;:&#34;万圣节&#34;&#34;线路4&#34;:&#34;&#34;&#34; 5号线&#34;:&#34;&#34;&# 34; PostTown&#34;:&#34;伍斯特&#34;,&#34;县&#34;:&#34;伍斯特郡&#34;,&#34;邮政编码&#34;:&#34; WR2 6NJ&# 34;,&#34; Mailsort&#34;:&#34; 94141&#34;&#34;条形码&#34;:&#34;(WR26NJ4D7)&#34;&#34;类型&#34; :&#34;住宅&#34;}]
当我调用
时,它不会出现在浏览器中http://localhost:9191/cxf/addresssearch/
我缺少什么? 感谢
答案 0 :(得分:0)
我通过删除末尾的日志标记解决了这个问题。