Answer the question
In order to leave comments, you need to log in
In 1C, when accessing through a Web service, an error 400 occurs. How to fix it?
Hello.
This is my first question here. Perhaps there is someone who understands what's going on here. Thank you.
-------------------------------------------------- -------------------------------------------
There is a web service and a common command . In the general command, the code is:
Попытка
ВСОпределение = Новый WSОпределения("http://192.168.___.__/t10/ws/OD.1cws?wsdl";); //#1
ВСервер = ВСОпределение.Сервисы.Получить("OD","OD");
ВТочкаВхода = ВСервер.ТочкиПодключения.Получить("ODSoap");
ВТОперация = ВТочкаВхода.Интерфейс.Операции.Получить("Sinhron");
Данные = Новый ХранилищеЗначения("Некие данные",Новый СжатиеДанных(9));
ДанныеXDTO = ВСОпределение.ФабрикаXDTO.Создать(ВТОперация.Параметры.Получить("Dan").Тип,Данные);
ВСПрокси = Новый WSПрокси(ВСОпределение,"OD","OD","ODSoap");
Ответ = ВСПрокси.Синхронизация(ДанныеXDTO);
Возврат Истина;
Исключение
Сообщить(ОписаниеОшибки());
Возврат Ложь;
КонецПопытки;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question