Unsupported content-type
Unsupported content-type
Posted on: Mon, 08/25/2008 - 16:21
Greetings,
I have received the following exception while parsing a large collection of text/html files:
"Exception com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html Supported ones are: [text/xml]"
My problem is that the set of files that have raised the exception are of the exact format of the ones that have been parsed successfully. Any ideas why I am receiving this exception?
Thank you,
h.
p.s. The exception has been received after almost 4000 files have been successfully generated by Calais 3.


Comments
h.
Just to confirm - these errors are occurring using the R3 Technology Preview version?
Regards,
Yes, Tom that is correct.
h.
Any updates why I might be receiving this exception?
I found out that the server is returning an html error page, and not the expected xml answer.
That's why the client code raises such an error. It means that the MIME type of the anser is text/html (for the html page) and not the text/xml type of the 'nominal' web service answer.
I verified this by using a proxy to intercept the http request and answer involved in this web service invocation (use Fiddler for instance). You will see that the server responds by sending an html page saying that something is wrong.
The response code is: 504 Gateway Timeout
We'll be able to take a look at this first thing next week.
This has been fixed.
Great! I will try it tomorrow and let you know the results. Thank you!