我对用于创建消费者端点的不同选项感到困惑。
尝试使用在 http://{ip}:{port}/webservices/name1
发布的网络服务。典型的端点如下所示:
<cxf:cxfEndpoint id="consume1"
serviceClass=""
address=""
endpointName=""
serviceName=""
wsdlURL=""
/>
典型的路线可能是这样的:
<route>
<from uri="cxf:bean:consume1?dataFormat=MESSAGE"/>
<to uri="log:output"/>
</route>
这是我的疑惑:
- 这里服务等级的值(value)是多少?我如何通过查看 wsdl 了解服务等级?
- 地址代表的是上面提到的服务url吗?我没有发现它在看几个exmaples
- 如何调用特定操作并传递来自 java 类的输入?
最佳答案
看看https://camel.apache.org/cxf .在这里您应该可以找到所需的所有信息。专看Spring配置here .
在您引用的链接 (https://camel.apache.org/cxf-proxy-example.html) 中,仅描述了将 Camel 用作 Web 服务代理时所需的配置。
关于java - Apache Camel : Build a CXF consumer and call the service,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22542707/