PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Real example for  SOAPAddHeader() (for wsse:Security)
Real example for SOAPAddHeader() (for wsse:Security)
Iniciado por eric, 03,ago. 2015 07:58 - No hay respuesta
Publicado el 03,agosto 2015 - 07:58
Did anyone succeed in using SOAPAddHeader() to add a header?

I am trying to add a XML signature to my SOAP request which MUST be in the header and not attached to an imported XSD element. My goal is to generate the following header:

<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
...

SOAPAddHeader(..., "wsse:Security") does not do the trick, the generated SOAP request still has an empty header.

Thanks in advance