PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Adding a header to a WebService request (WD20)
Adding a header to a WebService request (WD20)
Iniciado por guest, 29,ene. 2016 17:11 - No hay respuesta
Publicado el 29,enero 2016 - 17:11
Hi, (note I cut the < and > tags because everything gets messed up in the POST)

I am trying to a call a WebService (checks GREEK companies sending the VATID), but I am having a problem in the header of my request.
The header contains information for the user/password that is doing the request.
The user/password ARE NOT defined in the WEBSERVICE ....

This is the line:
xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" env:Header ns1:Security ns1:UsernameToken ns1:Username UUUUU /ns1:Username ns1:Password PPPPPP /ns1:Password /ns1:UsernameToken/ns1:Security/env:Header

but I can't find a way to INSERT the ABOVE in my call ....
I checked with SoapUI and Fiddler and this line is the only one missing.

I tried using SOAPAddHeader, but I am probably doing something stupid because I cannot add anything with my tests.

Any Ideas ?

Steven Sitas