Php SOAP WSDL传递参数?
我正在尝试将参数发送到此WSDL文件 我几乎完成了集成,但HotelReservation功能将变为空 我将此函数\uu getTypes用于HotelReservation()结果此参数:Php SOAP WSDL传递参数?,php,web-services,soap,wsdl,Php,Web Services,Soap,Wsdl,我正在尝试将参数发送到此WSDL文件 我几乎完成了集成,但HotelReservation功能将变为空 我将此函数\uu getTypes用于HotelReservation()结果此参数: [2] => struct Reservation { decimal Commission; ArrayOfGuest Guests; Invoce Invoce; boolean IsEbInsuranceWant; string RoomGuid; string SaleNote
[2] => struct Reservation {
decimal Commission;
ArrayOfGuest Guests;
Invoce Invoce;
boolean IsEbInsuranceWant;
string RoomGuid;
string SaleNote;
decimal TotalPrice;
ArrayOfint TransferPrice;
}
[3] => struct ArrayOfGuest {
Guest Guest;
}
[4] => struct Guest {
dateTime Birthday;
string Email;
boolean IsChild;
boolean IsMen;
string Mobile;
string Name;
string Surname;
string Title;
}
[5] => struct Invoce {
string Address;
int CityId;
string CompanyName;
int CountryId;
int DistrictId;
string Email;
boolean IsForeigner;
boolean IsInvoiceSend;
string Name;
string Phone;
string PhoneCityCode;
string PhoneCountryCode;
string SurName;
string TaxId;
string TaxOffice;
string TcId;
}
我使用的是标准php soap类和基本身份验证:
<?php
$result2 = $client2->HotelReservation(
array('Reservation' =>
array(
'Commission' => "",
'Guests' => array(
'Guest' => array(
'Birthday' => "",
'Email' => "",
'IsChild' => "",
'IsMen' => "",
'Mobile' => "",
'Name' => "",
'Surname' => "",
'Title' => ''
)
),
'Invoce' => array(
'Address' => "",
'CityId' => "",
'CompanyName' => "",
'CountryId' => "",
'DistrictId' => "",
'Email' => "",
'IsForeigner' => 0,
'IsInvoiceSend' => 0,
'Name' => "",
'Phone' => "",
'PhoneCityCode' => "",
'PhoneCountryCode' => "",
'SurName' => "",
'TaxId' => "",
'TaxOffice' => "",
'TcId' => ""
),
'IsEbInsuranceWant' => "",
'RoomGuid' => "",
'TotalPrice' => ""
)
));
@JayBlanchard这个问题我太累了,这是一个实际的问题。