Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Unexpected ContenType when call a WS Soap

Question
Kurro Lopez · Sep 23, 2021

Unexpected ContenType when call a WS Soap

Hi community,

I have a SOAP Client class that connect to a WS Service. This structure and configuration is the same for some providers that are integrated with my solution.

If I call to a provider, it returns the XML expected. But there is a provider that raises an error:

ERROR #6243: HTTP request to SOAP WebService returned response with unexpected CONTENT-TYPE: application/wsdl+xml

I've tried to set the ContentType to the adapter.%Client with this value, but it doesn't work.

If I call them using SOAP UI, with the same Soap Envelop, it works fine, and the Content-Type is text/xml

Can anyone help me?

Best regards,
Kurro Lopez

#SOAP #Caché #Ensemble
Product version: Ensemble 2017.1
$ZV: Cache for Windows (x86-64) 2017.2.1 (Build 801_3U) Thu Apr 12 2018 10:02:23 EDT

Source URL:https://community.intersystems.com/post/unexpected-contentype-when-call-ws-soap