我正在尝试使用的Web服务方法
http://documentation.rezexchange.com/cwi/cwidocumentation.html#Link9A
我发送带有这些参数的NuSOAP请求
$param = array(
"PropertyCode" => get_option('re_propertycode'),
"RateTypes" => array(
"SSDB"
),
"StartDate" => date('c', strtotime($rezStart)),
"EndDate" => date('c', strtotime($rezEnd)),
"Adults" => 1,
"Children" => 0,
"Infants" => 0
);
请求没问题,除非它没有识别SSDB,因为我必须以错误的方式发送字符串数组。
任何帮助非常感谢
答案 0 :(得分:0)
使用以下格式修复
$param = array(
"PropertyCode" => get_option('re_propertycode'),
"RateTypes" => array("string" => array("SSDB", "2NGT")),
"EndDate" => date('c', strtotime($rezEnd)),
"Adults" => $_POST['Adults'],
"Children" => $_POST['Children'],
"Infants" => $_POST['Infants']
);