【发布时间】:2018-03-15 00:20:08
【问题描述】:
我现在在 Camel 路线中工作,我想创建一个代理 Rest WS 来调用现有的 Rest WS。我为 SOAP WS 创建了它。 他们是否知道创建此路线的步骤。 PS:我正在使用 Json(Gson 库)和在 JBoss Fuse Envirement 中。
【问题讨论】:
标签: rest apache-camel jax-rs cxf jbossfuse
我现在在 Camel 路线中工作,我想创建一个代理 Rest WS 来调用现有的 Rest WS。我为 SOAP WS 创建了它。 他们是否知道创建此路线的步骤。 PS:我正在使用 Json(Gson 库)和在 JBoss Fuse Envirement 中。
【问题讨论】:
标签: rest apache-camel jax-rs cxf jbossfuse
你可以只创建http代理路由,基于jetty、http、http4等:
<route id="serviceProxy">
<from uri="jetty:http://0.0.0.0:8181/service/?disableStreamCache=true&matchOnUriPrefix=true&continuationTimeout=900000&httpClient.timeout=120000"/>
<to uri="jetty:http://{{app-server.host}}:{{app-server.http.port}}/service/?bridgeEndpoint=true&throwExceptionOnFailure=false&continuationTimeout=120000&httpClient.timeout=900000"/>
</route>
【讨论】: