Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php SOAP WSDL传递参数?_Php_Web Services_Soap_Wsdl - Fatal编程技术网

Php SOAP WSDL传递参数?

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

我正在尝试将参数发送到此WSDL文件

我几乎完成了集成,但HotelReservation功能将变为空

我将此函数\uu getTypes用于HotelReservation()结果此参数:

[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这个问题我太累了,这是一个实际的问题。