[英]Apache Camel WebService consumer
I have created a route 我已经创建了一条路线
cxf:cxfEndpoint id="testEndpoint" address="http://localhost:9003/ws"
serviceClass="pl.test.ws.testImpl"
wsdlURL="/META-INF/wsdl/test.wsdl"
endpointName="s:testSoap"
serviceName="s:testService"
xmlns:s = "https://test.pl/wsdl"/>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:sendToTest" />
<to uri="cxf:bean:testEndpoint" />
</route>
</camelContext>
How can i call
this webservice by putting object in the direct:sendToTest
route? 如何通过将对象放在
direct:sendToTest
路由中来call
此Web服务?
I would like to be able to make a soap request
some criteria will be met however I do not knew how can I put from java
class message on the route. 我希望能够提出一个
request
满足一些条件的肥皂,但是我不知道如何将java
类消息放在路由上。
can anyone give me a hint? 谁能给我一个提示?
You can use a ProducerTemplate
to send message to any Camel endpoint from Java code. 您可以使用
ProducerTemplate
将消息从Java代码发送到任何Camel端点。
A little example from the getting started guide 入门指南中的一个小例子
And to get more familiar with Apache Camel I recommend people to read this article 为了更熟悉Apache Camel,我建议人们阅读这篇文章
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.