How to resolve the error, "Please verify the content type for SOAP version".

How to resolve the error, "Please verify the content type for SOAP version".

book

Article ID: KB0093501

calendar_today

Updated On:

Products Versions
TIBCO API Exchange -
Not Applicable -

Description

Description:
By default TIBCO API Exchange Gateway (APIX-G) sends the "Content-Type" as "application/json" and the error below is thrown by some Target Services:
------------------------
Please verify the content type for SOAP version. Valid content types for SOAP1.1 : text/xml and application/xml. Valid content types for SOAP1.2 : application/soap+xml.
------------------------

Issue/Introduction

How to resolve the error, "Please verify the content type for SOAP version".

Resolution

To resolve this error add "Content-Type"  to the field Headers to Forward in the Target Services tab. Here is a sample entry from TargetServices.cfg:
..............................
service_responseMerge|HTTP|||20000,0,0,0|||||||||||/webservices/services/TargetWSService|targethost.com|80|||Cookie,Content-Type|POST
..............................

Additional Information