PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Adding Http Header to a soap webservice request
Adding Http Header to a soap webservice request
Iniciado por guest, 27,nov. 2014 13:02 - 3 respuestas
Publicado el 27,noviembre 2014 - 13:02
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 el 27,noviembre 2014 - 14:52
Hi

SOAPAddHeader (Function) is yout friend

regards

Allard
Publicado el 04,diciembre 2014 - 04:31
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 el 25,febrero 2020 - 14:08
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