How to add custom parameter and its corresponding value in the HTTP header using the Windows-win32-webservices.h library

Shree (Contractor) 0 Reputation points

I have implemented a SOAP web service client in C++ using MS Visual Studio 2019 and library “WebServices.h”, in order to consume a SOAP web service.

SOAP webservice that I am consuming requires a custom parameter and its corresponding value in the HTTP header.

I want to know how to achieve this. I couldn’t find any documentation for adding custom headers like this.

Note: Using WsAddCustomHeader, adds header in the SOAP header and not in the HTTP header.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,440 questions
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,554 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor

    Hello @Shree (Contractor),

    According to our policy, public forum supporters cannot have calls.

    As this issue is complex, please open an incident at so that our engineer can work with you closely and please choose the 'Networking Development - Other' for Windows SDK for this issue.

    0 comments No comments