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

Anonymous
2024-05-08T09:23:10.42+00:00

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 development Windows API - Win32
Developer technologies C++
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2024-05-10T02:33:32.65+00:00

    Hello @Shree (Contractor),

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

    As this issue is complex, please open an incident at https://developer.microsoft.com/en-us/windows/support/?tabs=Contact-us 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.