пятница, 3 июня 2016 г.

SAP PI REST адаптер не передает сообщение в статусе 500

http://ift.tt/1EJXqGd

Мы используем REST Адаптер в системе SAP PI 7.31 (SP15). Мы сделали сценарий и он работает нормально в случае успешной передачи (http 200 Ok)

 

Тем не менее, в случае какой-либо ошибки, мы получаем http 500 в SAP PI и он не возвращает никакой информации об ошибке.

Для проверки мы вызываем веб-сервис используя POSTMAN, он возвращает http 500 и текст, в котором описана ошибка. 

 

 

 

 

Как-то можно получить это сообщение в SAP PI и передать в систему-получатель?

 

Ответ: 

 

The REST adapter which is available in current version(7.3 SP16 / 7.4SP11) is not capable to fetch the exact error message from server, I have checked with SAP regarding this and they were saying that feature is available in 7.3 SP17 or 7.4 SP12 which is releasing in coming November. Also along with this feature there is one more as get the Http header details from receiver server.

 

Also checked possibility from them , but unfortunately there is no such.

 


 

We are using REST adapter available for SAP PI 7.31 (SP15). We have configured the scenario and it is working fine for success case.

 

However, whenever there is any error pertaining to the data, we are getting HTTP 500 error in SAP PI and no other information about error.

 

To check the issue if I call the Web-Service using Postman with same payload, it gives the error code as 500. Also, it provides the error text saying that which field was having issue as shown in below screen shot:

 


PS. то бишь пока мы можем только написать что-то вроде "что-то сломалось. но вы держитесь там, здоровья вам" в случае ответа 500 при обращении к веб-сервису. Печаль, тоска.

Custom Error Handling http://ift.tt/1FVSfiP



from Chizz_TecTeP http://ift.tt/1t69LzW
via IFTTT

Комментариев нет:

Отправить комментарий