PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → Adding Http Header to a soap webservice request
Adding Http Header to a soap webservice request
Iniciado por Shahazan Ali, nov., 27 2014 1:02 PM - 3 respostas
Publicado em novembro, 27 2014 - 1:02 PM
I'm new to WinDev and WLanguage. I'm consuming a webservice. It is easy to add a reference to a webservice wsdl and I followed this tutorial to consume a reference. What I see is that it is creating a component for me and I see there are methods that the webservice exposed. Now what I need is I need to add an http header for all the calls to all the methods of that webservice. That is, my point is, we all know that all the web-service calls uses an underlying HTTP request and I need to add an header to those http request. How can I do that in WinDev? Any tips or guide would be appreciated! Thanks!
Publicado em novembro, 27 2014 - 2:52 PM
Hi

SOAPAddHeader (Function) is yout friend

regards

Allard
Publicado em dezembro, 04 2014 - 4:31 AM
Thanks Allard for your reply but SOAPAddHeader does not add http headers but SOAP header. However, I found the solution for WinDev19 version: wsRequest is the solution. Now looking for solutions prior to WinDev19: How to inject HTTP headers the HTTP request to SOAPRun and SOAPRunXML?
Publicado em fevereiro, 25 2020 - 2:08 PM
Hi Allard,

Maybe do you have an idea how to add soap header in Windev Mobile 24 for Android Application?
Unfortunalty SOAPAddHeader function doesn't work on Android.

Thanks in advance,
Marcin