我正在尝试向客户端的 API 端点发送 SOAP 请求。我对 SOAP 一点也不熟悉,所以很难让它发挥作用。
来自客户的文档
The requested ticket can be used to call all the API web methods subsequently.
public string RequestTicket(
string username,
string password
);
URL
https://www.clientsurl.net/api/v01_00/APIService.asmx?wsdl
Parameters
string username
string password
我能够创建 WSDL
$client = new Client('https://www.clientsurl.ca/api/v01_00/APIService.asmx?wsdl', ['soap_version' => SOAP_1_1]);
但不确定如何发送参数
$params = [
'username' => 'myusername'
'password' => 'mypassword'
];
我也不确定相关性RequestTicket
是什么。我应该将它添加到网址吗?
答案可能很简单,但是经过大量搜索后,我找不到任何东西。请帮忙。