Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.
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.
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.
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.
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.