php - PHP:WSDL 请求 - 缺少必需的参数“文档”
问题描述
我正在尝试连接到 WSDL 并调用“Query_ByExample”。请参见下面的示例。
我尝试了多种选择,但不幸的是我无法创建请求。
$username="xxxxxx";
$password="xxxxxx";
$soapURL = "";
$client = new SoapClient($soapURL, array("trace" => 1, "exceptions" => 0, "login" => $username, "password" => $password) );
$params = array(
'TypeElpProcess' => array(
'user' => 'xxxxxxx',
'name' => 'QUERY_BY_EXAMPLE'
),
'TypeOrderDetails' => array(
'RMANo' => '123123'
)
);
var_dump($client->__getFunctions());
$response = $client->BookingElpEntry($params);
echo "<pre>";
print_r($response);
echo "</pre>";
错误信息是:
An Exception was thrown in the server:java.lang.Exception: missing required parameter 'document'
[faultcode] => soapenv:Server
我需要做什么来完成一个成功的请求?任何帮助,将不胜感激。谢谢你们。
解决方案
推荐阅读
- laravel - 如何在 laravel 中获取扩展名和临时路径
- spock - Spock检查调用使用变量而不是文字
- angular - 调试 Angular 8 .net core spa,css 文件直接从 src/assets/css 出现,而不是 dist/assets/css,scss 不编译
- r - 当 plotly 条形图 textposition = "inside" 时,如何在条形图内移动文本?
- php - 通过 NGINX 提供静态内容,基于子域名
- assembly - scanf 在汇编中不能与 qword 一起正常工作
- ssl - 启用让我们为两个域加密 ssl 证书
- java - 事件处理程序有编译错误:“从 lambda 表达式引用的局部变量必须是最终的”
- kubernetes - 是否需要使用 DaemonSet 部署 Ingress Controller?
- python-3.x - 从字典创建 Pandas 数据框 - python3