More SOAP header questions.
I posted a question on the official boards (https://forums.embarcadero.com/thread.jspa?threadID=117922&tstart=0), and so far it has been …crickets… – but I stumbed upon this post on SO: http://stackoverflow.com/questions/13751289/send-simple-strings-in-soap-header-in-delphi
which shows how to directly override TRemotable.ObjectToSoap to inject structures in the soap header. Unfortunately, it seems to be slightly more tricky to graft this into a WDSL document generated unit (and lose/reintegrate the modifications each time you rebuild from a new WDSL file).
ANY clues to how to do this smarter, would be appreciated.
Why is there no proper Soap Header handling in these classes, I wonder. It seems that the WDSL importer is somewhat outdated, since it refers to SOAP 1.1 and 1.2 – considering 1.2 was renamed 2.0 about 8 years ago.
In addition – another question has arrived: How the heck can I convince it to add _encoding=”utf-8″_ to the XML tag?
I do like learning new stuff, but it can be a hair-tearing experience at times.