在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格式错误,还是其他问题
求指教!
不知您是用哪个版本?
MuleESB3.5.1有个新的连接器(connector)WebServiceConsumer。你只要在设置中提供WSDL,然后选择Operation即可。非常好用。试试。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。