WebService调用时的异常:Not enough message parts were received for the operation
来源:互联网 发布:mac rstudio xcode 编辑:程序博客网 时间:2024/06/05 04:12
在调用WebService的接口时,经常会出现下面的错误:
Not enough message parts were received for the operation.
原因:
客户端在进行方法调用时,传递的参数有问题(参数不匹配)。
解决方法:
根据服务端提供的WSDL文档,修改客户端调用接口时的参数。
例如,下面是关于WSDL文件的部分内容:
在上述WSDL文档中,BuyTicket 是服务端发布的方法名称,in0、in1、in2、in3是方法的参数,这四个参数的类型都是字符串。
正确的调用方式为:
$soap = new SoapClient('接口地址');
$data = array('in0'=>'a', 'in1'=>'b', 'in2'=>'c', 'in3'=>'d');
$res = $soap->BuyTicket($data);
或
$soap = new SoapClient('接口地址');
$data = array('in0'=>'a', 'in1'=>'b', 'in2'=>'c', 'in3'=>'d');
$method = 'BuyTicket';
$res = $soap->__soapCall($method, array($method=>$param));
1 0
- WebService调用时的异常:Not enough message parts were received for the operation
- org.codehaus.xfire.fault.XFireFault: Not enough message parts were received for the operation.
- org.codehaus.xfire.fault.XFireFault: Not enough message parts were received
- 关于VMware提示there is not enough space on the file system for the selected operation
- ORA-30009: Not enough memory for CONNECT BY operation
- ORA-30009: Not enough memory for CONNECT BY operation
- ORA-30009: Not enough memory for CONNECT BY operation
- ORA-30009: Not enough memory for CONNECT BY operation
- The published message could not be routed because no subscribers were found 的解决
- virtualbox安装增强功能时The headers for the current running kernel were not found
- 【iOS】BSXPCMessage received error for message: Connection interrupted的解决办法
- 异常:JBPM4--No unnamed transitions were found for the task
- 错误:The message received from the server could not be parsed.
- 解决问题: The message received from the server could not be parsed
- RestTemplate的异常:Not enough variables available to expand
- RevitAPI: 调用NewExtrusion的时候抛出异常 One of the conditions for the inputs was not satisfied
- The world is not enough
- LogCat message: The Google Play services resources were not found. Check your project configuration
- 我的拖延症和依赖症
- C# Winform 跨线程更新UI控件常用方法汇总
- 第一个Lua程序 Game.lua
- Leetcode 400. Nth Digit (Easy) (cpp)
- 算法题:电梯 每层只能上或者下固定层数
- WebService调用时的异常:Not enough message parts were received for the operation
- VHDL学习:利用Quartus自带库3步快速完成状态机
- UVALive 6590 Digraphs (DFS找环找通路)
- 开通博客,记录菜鸟的成长历程
- UVa 1363 Joseph's Problem
- H5离线缓存机制-manifest
- 55. Jump Game
- Linear Algebra - Lesson 1. 方程组的集合解释
- ubuntu终端su认证失败:允许su到root的方法