I'm trying to connect to a web service from a C++ app using WWSAPI. I got the base connection working just fine. My SOAP message has two parts though, a SOAPHeader (soapenv:Header) and a body (soapenv:Body). the generated functions only
fill in the body. How do I set the Header information? I am using WsAddCustomHeader to populate a message with the struct that contains the header data but I don't know what to do with this message as it is not a parameter in the generated function.
The generated wsdl.h file specifies the soap header and the function call:
// input message soap header element is
//(WS_ELEMENT_DESCRIPTION*)&SOAPHeaderType_xsd.globalElements.auditInfo,
// operation: ICBC_Admin_whoAmI_Binder__whoAmI
HRESULT WINAPI ICBC_Admin_whoAmI_Binder__whoAmI(
__in WS_SERVICE_PROXY* _serviceProxy,
__in_opt __nullterminated WCHAR* loginUserId,
__out_opt __deref __nullterminated WCHAR** replyData,
__in WS_HEAP* _heap,
__in_ecount_opt(_callPropertyCount) const WS_CALL_PROPERTY* _callProperties,
__in const ULONG _callPropertyCount,
__in_opt const WS_ASYNC_CONTEXT* _asyncContext,
__in_opt WS_ERROR* _error)