We currently use C++ Builder 6 and need to use web services from a client that requires the wsse soap security packet in the header (as follows):
<soapenv:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/secext" soapenv:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>"username goes here"</wsse:Username>
<wsse:Password>"password goes here"</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
The import from the WSDL works fine - all the functions are there. If I try to make a call, I get a security token error, due to the soap security header packet not being there (I've traced the packet and verified it's not there). I've tried everything I can to see if I can add this to the soap packet, but to no avail.
Anyone with any ideas??
Thanks in advance,
Mike Ruiz
My apologies for the delay (the past weeks were so focused on finishing
C++Builder that I had absolutely no time for reading the newsgroups).
You may have found this already... there's a 'OnBeforeExecute' event that
should allow you to modify the XML packet being sent. It's typically the
approach used to tweak the packet of a SOAP request. If you need more
information please let me know.
Cheers,
Bruneau.