MULE 3.4如何调用外部Web Service

reneyan 2013-07-01 10:40:51
MULE中调用CXF发布的外部Web Service,报错:org.mule.api.transport.NoReceiverForEndpointException: There is no receiver registered on connector "connector.VM.mule.default" for endpointUri vm://request-response

调用不到这个Web Service,不知道是哪里的问题,求大神解答!



下面是MULE配置文件:

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns="http://www.mulesoft.org/schema/mule/core"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:spring="http://www.springframework.org/schema/beans"

xmlns:vm="http://www.mulesoft.org/schema/mule/vm"

xsi:schemaLocation="

http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-current.xsd

http://www.mulesoft.org/schema/mule/core

http://www.mulesoft.org/schema/mule/core/current/mule.xsd

http://www.mulesoft.org/schema/mule/vm

http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd">

<model name="Gold">

<service name="Lovol_InventoryQueryService">

<description Reliability="0.96" ResponseTime="200" Cost="2" ServiceInstanceId="53d7638a3f0d7153013f0d7482890026"/>

<inbound>

<vm:inbound-endpoint path="53d7638a3f0d7153013f0d78cbdd002b" exchange-pattern="request-response"/>

</inbound>

<outbound>

<pass-through-router>

<outbound-endpoint address="wsdl-cxf:http://localhost:1111/QueryInventory?wsdl&method=QueryInventory2"/>

</pass-through-router>

</outbound>

</service>

</model>

</mule>



下面是发布的CXF Web Service:

package org.mule.sdu.ws;


import org.apache.cxf.endpoint.Server;

import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

// SBM库存查询互操作接口

public class QueryInventoryMainServer {


public static void main(String[] args){

JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();

factory.setServiceClass(QueryInventory.class);

factory.setAddress("http://localhost:1111/QueryInventory");

Server server = factory.create();

server.start();

}

}
...全文
417 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
大鸡腿 2013-08-19
  • 打赏
  • 举报
回复
我也报这个错 不知道是什么原因 望赐教
reneyan 2013-07-02
  • 打赏
  • 举报
回复
已经解决,是别的地方的问题

1,236

社区成员

发帖
与我相关
我的任务
社区描述
企业软件 中间件技术
社区管理员
  • 中间件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧