首页 > 解决方案 > 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

我需要做什么来完成一个成功的请求?任何帮助,将不胜感激。谢谢你们。

标签: phpsoapxmlhttprequestwsdlsoap-client

解决方案


推荐阅读