Here is a target: build client app using N wsdl's and when some SOAP requests launched - add some specific SOAP:Header ( session tokens and client data as usual )
Here we got a few limitations:
- Wsdl's provided by services cannot be modified
- Generated gSOAP code also cannot be modified (IOW generated code contain dummy SOAP_ENV_Header )
- Wsdl's provided by services DO NOT contain any headers definition ( and by the by it looks reasonable Adding SOAP implicit headers to WSDL )
So here is the question: How to add custom generated XML into SOAP:Header field in requests ?
ps. Frankly speaking I got one solution resolving this question via gsoap plugin's but I think its a bit "ugly-hacky" and really appreciate more beautiful and elegant solution