| ▲ | kstrauser 2 hours ago | |||||||||||||||||||||||||||||||||||||||||||||||||
So, first up: why? Why is everything still using SOAP? I'm not talking down on Brazil, by the way. I've worked in American healthcare tech, and at some point you find yourself learning EDI to talk to insurance companies. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | chrisandchris a minute ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
> So, first up: why? Why is everything still using SOAP? That‘s the question? And not why every single invoice has to go through the government? I would call that developers loss of focus. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | bblb 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
Maybe it's a solved problem and SOAP 1.2 is good enough for that particular job. We _still_ use TCP/IP and it's v4 is from 1981. edit: I once looked deep into Remote PowerShell. How it's actually built. Dear. God. XML enveloped inside XML inside another XML wrapped around HTTP. Add some certificate based encryption for the HTTP envelope and some more encryption for the Kerberos messaging inside the serialized XML wrapped in envelopes and wrappings. Now THAT'S a communication protocol. :D | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | qwertyuiop12 an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
SOAP is good for flexible APIs due to xml “eats anything”, the “included” support for signatures and schema validation. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | userbinator an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
The answer is probably "because SOAP was the hot new thing when they first decided to do this". Working with enterprise software is in general a horrific experience, especially that which originated in the 90s at the peak of OOP dogma-cults and insane architecture-astronautism abstraction mixed with SOLIDly thick levels of bureaucracy. My memories of COM, CORBA, DCE/RPC, XML, etc. are not great. Some of the stuff reads like satire today, but people were actually serious about it: https://en.wikipedia.org/wiki/Object_Management_Group (I recall an article in a physical magazine long ago which started with "The Object Management Group's Working Task Force, also known as OMGWTF...") | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | cyberax an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
Why it _shouldn't_ be SOAP? It's a perfectly fine protocol, with a rigid schema and mature code generation support for all relevant languages. It's not the sexiest protocol, but it gets the job done. And what are the alternatives? JSON schema? | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | toast0 an hour ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
SOAP is terrible[1], but if the whole country is on board, change is very difficult and you're not going to move to anything simpler because it would either be too simple to actually satisfy the need or too simple to satisfy the selection comittee. [1] The whole thing with wsdl is like an elaborate prank. Without fail, the WSDL files are impossible to obtain and don't reflect the service as deployed or documented. Documented equivalent forms will not be treated as equivalent. Two instances of a 'standard' service will not accept the same XML. And I only worked with simple SOAP services with straight forward payloads. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||