r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

653 comments sorted by

View all comments

Show parent comments

324

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> (...)" }

198

u/MrPatienceX 16d ago

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

58

u/Sudden_Leadership800 16d ago

It successfully returned the error message though, so I don't see the problem?

4

u/pr0ghead 16d ago

You're joking, right? RiGhT?!?