powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / Не получается отправить запрос по SOAP
1 сообщений из 1, страница 1 из 1
Не получается отправить запрос по SOAP
    #38708423
mikegubin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Имеется файл wsdl.
Получаю методы:

$client = new SoapClient('shortOpty.WSDL');
var_dump($client->__getFunctions());


Результат:

array(2) {
[0]=>
string(60) "shortOpty_Output shortOpty(shortOpty_Input $shortOpty_Input)"
[1]=>
string(68) "confirmOpty_Output confirmOpty(confirmOpty_Input $confirmOpty_Input)"
}


Получаю свойства:

$client = new SoapClient('shortOpty.WSDL');
var_dump($client->__getTypes());


Результат:

array(11) {
[0]=>
string(50) "struct shortOpty_Input {
createOpty createOpty;
}"
[1]=>
string(57) "struct shortOpty_Output {
OtpCBResponse OtpCBResponse;
}"
[2]=>
string(62) "struct confirmOpty_Input {
string decision;
string optyId;
}"
[3]=>
string(78) "struct confirmOpty_Output {
string Error_spcCode;
string Error_spcMessage;
}"
[4]=>
string(52) "struct createOptyTopElmt {
createOpty createOpty;
}"
[5]=>
string(33) "struct createOpty {
Opty Opty;
}"
[6]=>
string(431) "struct Opty {
string birthday;
string TIN;
string name;
ListOfProducts ListOfProducts;
string creditTime;
string addDocIssueDate;
string addDocIssuer;
string addDocNumber;
string addDocSeries;
string email;
string lastName;
string middleName;
string phoneNumber;
string sex;
string Channel;
string creditProductCode;
string OrgName;
string OrgEmail;
string OrgCode;
string optyType;
string applicationAmount;
}"
[7]=>
string(43) "struct ListOfProducts {
Product Product;
}"
[8]=>
string(176) "struct Product {
string productSequence;
string productPrice;
string productName;
string productModel;
string productMark;
string productCount;
string productCategory;
}"
[9]=>
string(61) "struct OtpCBResponseTopElmt {
OtpCBResponse OtpCBResponse;
}"
[10]=>
string(73) "struct OtpCBResponse {
string UUID;
string code;
string description;
}"
}


Вижу, что для метода shortOpty не указаны свойства.
Т.е. мне нужно вызвать метод shortOpty, но с какими параметрами?

$client = new SoapClient('shortOpty.WSDL');
$result = $client->shortOpty(array(.....));


Помогите, пожалуйста, разобраться.
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / Не получается отправить запрос по SOAP
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]