我正在尝试连接到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
要完成成功的请求,我需要做什么?任何帮助,将不胜感激。谢谢大家。