User offline. Last seen 3 years 22 weeks ago. Offline
Joined: 12/04/2008

Hi, I have a weird problem when trying to use your web service -

I'm sending to your service a valid html page. I have changed the parameters to c:contentType="TEXT/HTML" c:outputFormat="Text/Simple".

when I try to run my Java client, I'm getting the following exception:

Exception in thread "main" com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html Supported ones are: [text/xml]

at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:130)
        at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:294)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:173)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:88)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
        at com.sun.xml.ws.client.Stub.process(Stub.java:248)
        at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:134)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:244)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117)
        at $Proxy29.enlighten(Unknown Source)

(I even tried the
illustrated example here:
http://wiki.netbeans.org/SOAPclientForOpenCalais , but it won't work either...)

 have you any idea what does it mean ?

 Thanks!

Trackback URL for this post:

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

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.
User offline. Last seen 3 years 23 weeks ago. Offline
Joined: 12/04/2008

it seems that I'm getting 403 forbidden from your server, although I have registered
and got a key... I have tried to register again under this new username and got another
key, but this also does not work for me...

User offline. Last seen 1 year 2 weeks ago. Offline
Joined: 12/31/1969

Hi,

Did it work for you and suddenly stopped working? Or it did not work ever?

Are you using api.opencalais.com?

Thanks,
Ofer

User offline. Last seen 3 years 22 weeks ago. Offline
Joined: 12/04/2008

It never worked... very weird...
anyway, I have used the SWS ClearForest's web service instead
and it worked well...

thanks