Life gets even more complicated if you were to attempt to encrypt or digitally sign one or more elements inside the CDATA-enclosed XML string.
It’s not that the soap request was invalid per the soap spec, its just that it is non-standard, ignores best practices and reflects either a naive or lazy design.
Seriously, how much extra work would be required to avoid the CDATA if you were given that task? 30 minutes, a few days if you needed a generalized interface?
I get to see this kind of stuff frequently from web service newbies. That’s to be expected and there’s nothing wrong with that during a learning period (the web services equivalent of pink flashing fonts when learning HTML). However, when an application vendor produces this kind of, er, stuff and calls it web services or SOA, they should be soundly criticized and sent packing in embarrassment to get it right.
Great question, G. Hope that helps.
Regards,
Mark
#API-Management#webMethods#soa