http://docs.wso2.org/display/IntegrationPatterns/Aggregator
我已经完成了所有步骤。但是我得到了一些错误。
=================
[2013-09-06 13:19:14,987] ERROR - AggregateMediator Error evaluating expression:
//m0:getQuoteResponse
org.apache.synapse.SynapseException: Could not find matching elements to aggrega
te.
at org.apache.synapse.mediators.eip.EIPUtils.enrichEnvelope(EIPUtils.jav
a:148)
at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.getAggr
egatedMessage(AggregateMediator.java:398)
at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.complet
eAggregate(AggregateMediator.java:345)
at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate
(AggregateMediator.java:290)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLis
tMediator.java:71)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMe
diator.java:114)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(A
xis2SynapseEnvironment.java:239).....
============
任何人都可以帮助我吗?
感谢。
答案 0 :(得分:0)
我试过这个并且它运行正常。在错误日志中,错误大约是soap body中的//m0:getQuoteResponse
标记。我认为这是由于配置中的命名空间错误。
相应的命名空间应为http://services.samples
答案 1 :(得分:0)
检查axis2server日志。
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /services/SimpleStockQuoteService/
如果这是错误。
您需要使用ant构建示例项目SimpleStockQuoteService。然后它将示例项目部署到axis2server中。