Error on BusinessConnect SOAP message: "Error creating soap object. :Unrecognized content-type 'text/html'" error in the audit log screen.
book
Article ID: KB0084044
calendar_today
Updated On:
Products
Versions
TIBCO BusinessConnect
BusinessConnect SOAP 6.1.0 and above.
Description
The Apache axis library used with the BusinessConnect SOAP Protocol 6.1 plug does a strict validation check on the content-type header of soap message. The earlier version of the Apache Axis library included in previous versions of the SOAP protocol did not do as strict of content-type checking and would process responses with content types of 'application/x-www-form-urlencoded' or text/html" without throwing an error
Environment
TIBCO BusinessConnect SOAP 6.1.0
Applicable to all Environments.
Resolution
When a SOAP message is sent, its SOAP envelope must have the MIME header Content-Type set to "text/xml". When receiving a SOAP message from a trading partner, the SOAP part of any message that is received must have the MIME header Content-Type with a value of "text/xml" or "application/soap+xml". The value must be "text/xml" because content in the SOAP part of a message must be in XML format. As this restriction is in a Apache Axis libraries, it can not be resolved in the BusinessConnect product.
Issue/Introduction
When the BusinessConnect SOAP protocol processes a response from a trading partner, an error "Error creating soap object. :Unrecognized content-type 'text/html'" error i is show in the audit log screen.