开发者社区> 问答> 正文

mule调用web service?报错

在mule ESB中调用外部Service出错,几天未果,求任何相关建议!



eclipse中创建发布服务,http://localhost:8080/testWS1/services/testWSImpl?wsdl能显示wsdl文件。

mule中使用以下代码部分引用

<outbound-endpoint address="wsdl-axis:http://localhost:8080/testWS1/services/testWSImpl?wsdl;method=getCreditProfile" doc:name="Generic" exchange-pattern="request-response"></outbound-endpoint>
mule中报错

INFO  2014-08-18 16:21:20,420 [[8_18].connector.http.mule.default.receiver.07] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.wsdl.axis.mule.default.dispatcher.27269308'. Object is: AxisWsdlMessageDispatcher
ERROR 2014-08-18 16:21:20,436 [[8_18].connector.http.mule.default.receiver.07] org.mule.exception.DefaultMessagingExceptionStrategy:
********************************************************************************
Message               : Cannot invoke WS call without an Operation. Set the method param on your endpointUri or on the endpoint itself. Failed to route event via endpoint: AxisWsdlMessageDispatcher{this=1a018bc, endpoint=http://localhost:8080/testWS1/services/testWSImpl?wsdl;method=getCreditProfile, disposed=false}. Message payload is of type: String
Code                  : MULE_ERROR--2
--------------------------------------------------------------------------------
Exception stack is:
1. Cannot invoke WS call without an Operation. Set the method param on your endpointUri or on the endpoint itself. Failed to route event via endpoint: AxisWsdlMessageDispatcher{this=1a018bc, endpoint=http://localhost:8080/testWS1/services/testWSImpl?wsdl;method=getCreditProfile, disposed=false}. Message payload is of type: String (org.mule.api.transport.DispatchException)
  org.mule.transport.soap.axis.AxisMessageDispatcher:386 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transport/DispatchException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
org.mule.api.transport.DispatchException: Cannot invoke WS call without an Operation. Set the method param on your endpointUri or on the endpoint itself. Failed to route event via endpoint: AxisWsdlMessageDispatcher{this=1a018bc, endpoint=http://localhost:8080/testWS1/services/testWSImpl?wsdl;method=getCreditProfile, disposed=false}. Message payload is of type: String
    at org.mule.transport.soap.axis.AxisMessageDispatcher.getInitialMethod(AxisMessageDispatcher.java:386)
    at org.mule.transport.soap.axis.AxisMessageDispatcher.getCall(AxisMessageDispatcher.java:162)
    at org.mule.transport.soap.axis.AxisMessageDispatcher.doSend(AxisMessageDispatcher.java:145)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************

已指定operation不是通过method指定吗

还是指定method格式错误,还是其他问题

求指教!

展开
收起
爱吃鱼的程序员 2020-06-14 22:40:07 732 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    不知您是用哪个版本?

    MuleESB3.5.1有个新的连接器(connector)WebServiceConsumer。你只要在设置中提供WSDL,然后选择Operation即可。非常好用。试试。 

    2020-06-14 22:40:24
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Web应用系统性能优化 立即下载
高性能Web架构之缓存体系 立即下载
PWA:移动Web的现在与未来 立即下载