1、在本地起了一个webservice的服务
http://localhost:63081/hello?wsdl

2、在mule创建一个webservice cosumer,用来调用1中的webservice服务。以下是相关配置
3、直接在浏览器上输入http://localhost:8081/sayHi,返回以下信息
COULD_NOT_READ_XML_STREAM. Failed to route event via endpoint: org.mule.module.cxf.CxfOutboundMessageProcessor.
4、借用postman请求

返回以下信息
Message part {http://schemas.xmlsoap.org/soap/envelope/}Envelope was not recognized. (Does it exist in service WSDL?).
5、如果借助soapUI工具来请求的话,是会成功返回信息的,证明第1步启动的webservice服务是没有错的

6、在第4中,post的请求参数是确定有传进去的(debug过)
the king in the north
但是却不知道为何调用webservice失败。请求大神耐心解答。谢谢。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
光阴似箭催人老,日月如移越少年。