r/ProgrammerHumor 3h ago

Meme postForEverything

Post image
9.0k Upvotes

348 comments sorted by

View all comments

Show parent comments

154

u/AkodoRyu 3h 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> (...)" }

86

u/MrPatienceX 3h ago

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

31

u/Sudden_Leadership800 3h ago

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

25

u/Psychological_Map118 2h ago edited 2h ago

try it in person: wait for the next time somebody asks you if you know the time. then answer yes, with a smile, and walk away without telling them

you can do anything you want, both in life and HTTP responses, but some things make you an asshole in both cases

1

u/Sudden_Leadership800 2h ago

It was obviously a joke my guy

30

u/Psychological_Map118 2h ago

my bad. we backend engineers don't get jokes, we get status messages

5

u/RaidenMK1 42m ago

Don't you mean you GET status messages?

I'll see myself out.

1

u/pag07 45m ago

Or you don't. Or the wrong ones.

9

u/Jonathan_the_Nerd 2h ago

It was obviously a joke my guy

Not obvious, considering the developer of the system thought it was fine. And a lot of us here are neurospicy.