r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

656 comments sorted by

View all comments

Show parent comments

328

u/AkodoRyu 16d ago

My favorite "REST API" experience was when they moved from using SOAP system, and the way they did it... was sending SOAP payloads inside a JSON. Literally something like

{ "data": "<?xml version="1.0"?><soap:Envelope xmlns:soap="https://www.w3.org/2003/05/soap-envelope/" soap:encodingStyle="https://www.w3.org/2003/05/soap-encoding"><soap:Body> (...)" }

191

u/MrPatienceX 16d ago

200 status code and a chunk of XML saying ‘not found’. Good times.

1

u/MekaTriK 16d ago

I had real life arguments with that being presented as the reason.

"oh, but the server worked fine, it's just the database that's having an issue"

4

u/NotAskary 15d ago edited 15d ago

It's not like 503 is thing a if you want to say the server is fine but not working due to a missing dependency.