Q
Q
qpz_262020-12-12 21:15:56
1C
qpz_26, 2020-12-12 21:15:56

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);    
        Возврат Истина;    
    Исключение
        Сообщить(ОписаниеОшибки());
        Возврат Ложь;    
    КонецПопытки;

When you clicked the Run Synchronization button, at first everything was fine, i.e. the execution went along the Attempt branch, the answer reached exactly, the execution did not go to the Exception branch.

But then, it is not clear why, during the next test of the button with the general command, immediately after passing the line of code #1, the execution began to go to the Exception and as
a result - an error (points to this line of code (above) and error code 400).

(1c and Apache2.2 reinstalled - did not help)

At the same time, I see the database in the browser, the xml file too.
—————————————
Around the time this error occurred, the following began: even if the database is not open anywhere (neither in the browser, nor on the PC), a message is displayed: “The limit for the number of connections to IB has been reached”. To get out of this situation, you often have to clear the cache and stop the server.

What could it be? How to fix?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question