User offline. Last seen 5 years 21 weeks ago. Offline
Joined: 12/31/1969

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.

Trackback URL for this post:

http://www.opencalais.com/trackback/5541

Login or Register to post a comment.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Tom
User offline. Last seen 3 years 29 weeks ago. Offline
Joined: 05/07/2008

h.

Just to confirm - these errors are occurring using the R3 Technology Preview version?

Regards,

User offline. Last seen 5 years 21 weeks ago. Offline
Joined: 12/31/1969

Yes, Tom that is correct.

h.

User offline. Last seen 5 years 21 weeks ago. Offline
Joined: 12/31/1969

Any updates why I might be receiving this exception?

User offline. Last seen 5 years 21 weeks ago. Offline
Joined: 12/31/1969

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

Tom
User offline. Last seen 3 years 29 weeks ago. Offline
Joined: 05/07/2008

We'll be able to take a look at this first thing next week.

User offline. Last seen 2 hours 16 min ago. Offline
Joined: 04/30/2008

This has been fixed.

User offline. Last seen 5 years 21 weeks ago. Offline
Joined: 12/31/1969

Great! I will try it tomorrow and let you know the results. Thank you!