PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → [WD26] Problem connecting to SOAP 1.2 webservice
[WD26] Problem connecting to SOAP 1.2 webservice
Iniciado por ERH, jan., 11 2022 10:02 PM - Sem resposta
Publicado em janeiro, 11 2022 - 10:02 PM
Hi,

Anyone successful in connecting to a SOAP 1.2 webservice in WD26?

First I used the SOAPRunXML command.
However in SOAP 1.2 the payload content-Type must be set to application/soap+xml. Apparently in WD26 the content type is automatically set to text/xml, resulting in an error. Unsupported Content-Type: text/xml Supported ones are: [application/soap+xml]).

I reported this to PC Soft support, and they handed me two workarounds.

Workaround 1. User HTTPSend (of HTTPRequest)
This solves the application/soap+xml issue. But now I have to specify the soap action (operation) and that is not documented in WD26. The SOAP 1.2 requires the action to be in de contenttype, e.g. "application/soap+xml;action="Givemesomesoap"". I've tried the parameter as action, soapaction and operation, all of them didn't give the result.

I contacted the provider of the SOAP webservice for some help in this.

Workaround 2. Use the methods of the imported function
This is my prefered method. However, the webservice requires an additionital security header (password digest, nonce). I tried the SOAPAddHeader function, but this function requires a type (structure) only available in the wsdl. Since the security header is not available in the provided wsdl, I'm not able to insert sucha header.

Any input or ideas are welcome, thanks.

regards, Edwin