News for hackers. Stuff that matters.
Re:The Java type system is broken by bunnymancer on Thursday July 19, 2018 @11:19AM (#17567119)
Had a client just last month that were doing SOAP wrong somehow...

Required a SOAP message, that contained no XML after the message tag, but instead the entire message body was to be a JSON, and responded with a JSON if something was wrong, and a fully formed SOAP message if things were Ok.

That and the guys that handle your money use the Http status code as their personal error messages. Except when the error is on their end, in which case they return 200 and a JSON with an error message.

There are plenty of ways to do REST wrong, so let's not lump that into the people that make blog posts complaining about X because X is broken, and working just fine...

Re:The Java type system is broken by MaxBarraclough on Thursday July 19, 2018 @11:32AM (#17567240)
The only thing stopping Tim Berners-Lee spinning in his grave, is that he's still alive.
Re:The Java type system is broken by cs02rm0 on Thursday July 19, 2018 @02:19PM (#17568982)
Had a client just last month that were doing SOAP wrong somehow...

To be fair, I'm not sure there's any other way.

Re:The Java type system is broken by mey on Thursday July 19, 2018 @07:25PM (#17571243)
There are degrees, sort of like levels of hell. I think the universe implodes if you combine XML Encryption and SOAP SMTP binding. Actually that may explain things pretty well...
Re:The Java type system is broken by aserafini on Thursday July 19, 2018 @02:23PM (#17569031)
I'm guessing you're talking about Adyen. At least I've had exactly the same experience integrating with their API. It's an awful mismash. I even get responses with bool = 'true' in their json, but only sometimes. That's the string 'true' sometimes and othertimes json true.
Re:The Java type system is broken by majewsky on Thursday July 19, 2018 @03:30PM (#17569527)
Oh god, there's a ton of those in the Openstack API. Representative example from my own code that has to deal with it: the veryFlexibleUint64. https://github.com/sapcc/limes/blob/dac0e2019ed2a6006585c2a3...
Re:The Java type system is broken by flamtap on Thursday July 19, 2018 @07:16PM (#17571194)
I'm... I'm so sorry.
Re:The Java type system is broken by meddlepal on Thursday July 19, 2018 @12:07PM (#17567636)
Well I hope the money was good at least. Yikes.