Answer the question
In order to leave comments, you need to log in
How to catch POST on the 1s side in web services?
Actually, the task is to create an API for data transfer for the subsequent formation of an order on the 1C side.
It was decided to send a post request by the key "params" (temporary name) json string multidimensional array.
The first problem is how to get data from a post request, the only thing I could google is
Ответ = Новый HTTPСервисОтвет(200);
Ответ.УстановитьТелоИзСтроки(Запрос.ПараметрыЗапроса.Получить("params"));
Answer the question
In order to leave comments, you need to log in
how to get data from post request
ЧтениеJSON = Новый ЧтениеJSON;
ЧтениеJSON.УстановитьСтроку(POST_txt);
Объект_JSON = ПрочитатьJSON(ЧтениеJSON,,"DOC_DATE"); // важно указать все ваши поля типа даты, что бы потом не парсить вручную строки
ЧтениеJSON.Закрыть();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question