Share feedback, ideas and get community help

Updated 6 months ago

error http request post body

At a glance

A community member is having an issue with an API where the required method is POST, the header is application/xml, and when they send the test XML, it returns an error. Other community members suggest testing the API using the provided details, and one community member is able to reproduce the issue and is working on a fix.

Useful resources
Hey guys, I have an API open today and in your connectivity test the required method is post, header is application/xml in the body field when I send the test xml it returns an error... can anyone help?

link api testing: https://services-hotels.focomultimidia.com/v1/service/ota/OTA_PingRQ
METHOD: POST
BODY: <?xml version="1.0" encoding="UTF-8"?>
<OTA_PingRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_PingRQ.xsd" TimeStamp="2012-11-13T10:06:51-00:00" Target="Test" Version="1">
<EchoData>Is there anybody out there?</EchoData>
</OTA_PingRQ>
HEADER: Content-Type: application/xml
B
j
10 comments
What's the issue?
In this api I put the header: content-type: application/xml and in the xml field I paste the test xml and it returns with error 500, but if I do the same in Postman it succeeds, how can we solve this?
if you want you can test
HEADER: Content-Type: application/xml
BODY; <?xml version="1.0" encoding="UTF-8"?>
<OTA_PingRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_PingRQ.xsd" TimeStamp="2012-11-13T10:06:51-00:00" Target="Test" Version="1">
<EchoData>Is there anybody out there?</EchoData>
</OTA_PingRQ>
Ok thx will try that tomorrow and let you know
Ok managed to reproduce it. I'm seeing how I can fix this
Alright, pushing a fix. Available in 10 min
Add a reply
Sign up and join the conversation on Discord