Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
lizzy1
Contributor III
Contributor III

tSOAP setting content-type

I'm trying to use Talend OpenStudio to do a SOAP webservice call. I can do the call in postman, so I know the service is up and working correctly.

The problem seems to be that I can't appropriately set the Content-Type header to text/xml

I am getting the error:

Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/plain. Is this an error message instead of a SOAP response?

 

How do I set headers in tSOAP, specifically Content-Type

Labels (3)
5 Replies
Anonymous
Not applicable

Can you post a screenshot of your configuration please? A SOAP 1.2 message content type is "application/soap+xml", whereas a SOAP 1.1 message is "text/xml". So should your SOAP version be set to 1.1, this should be ok.

lizzy1
Contributor III
Contributor III
Author

The service wants "text/xml", not "text/html", though, which talend doesn't seem to support changing to (or is non-standard SOAP?). I found an alternative way of accessing the data I need.

Anonymous
Not applicable

What was your alternative way? Do you have the SOAP's WSDL so that we can see what the details are? My previous point was that setting the tSOAP to use SOAP Version 1.1 *should* have used the content-type that you need.

lizzy1
Contributor III
Contributor III
Author

I'm not comfortable sharing the WDSL since the service is not widely used. The fix was service-specific; I ended up using a different, non-SOAP access method.

Anonymous
Not applicable

Fair enough, it is often tricky to identify issues with services unless you have all of the pieces of the puzzle. However, if you have a solution, that's all that matters.