gpt4 book ai didi

php - 使用 SoapClient 在 PHP 中为 WebServices API 创建 WSSE Auth SOAP 调用

转载 作者:行者123 更新时间:2023-12-04 06:20:50 25 4
gpt4 key购买 nike

<分区>

我有来自供应商 API 的以下内容: enter image description here

我需要使用 php 创建一个 Soap 调用。我该怎么做呢?到目前为止我有这个:但它不起作用:

private function booking_soap_connect() {
// the wsdl URL of your service to test
$serviceWsdl = 'https://apitest.com/bookingapi.asmx?WSDL';

// the parmeters to initialize the client with
$serviceParams = array(
'login' => 'un',
'password' => 'pw'
);

// create the SOAP client
$client = new SoapClient($serviceWsdl, $serviceParams);

$data['Brand'] = "All";
$data['TourCode'] = "QBE";
$data['DepartureCode'] = "8000321";
$data['VendorId'] = "test";
$data['VendorPassword'] = "test";

$results = $client->GVI_DepartureInfo($data)
echo $results;
}

请帮忙

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com