users@glassfish.java.net

JAX-WS "Unsupported Content-Type: text/plain"

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Wed, 06 Jun 2007 10:24:15 -0400

Hi,

I have two web services that are secured with transport layer SSL, and
HTTP BASIC authentication. One is a servlet endpoint, and the other is
an EJB endpoint. When deployed to my local Sun App Server 9.1 Beta, my
service client (deployed to same app server) works great. I can chance
the password being used by the service client and I get exceptions. Perfect.

When I deploy the services to a Sun App Server 9.0, and run the client
from my Sun App Server 9.1, the service client that talks to the servlet
endpoint service throws the following exception:

com.sun.xml.ws.server.UnsupportedMediaException: Unsupported
Content-Type: text/plain; charset=iso-8859-1 Supported ones are: [text/xml]
        at
com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:116)
        at
com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:280)
        at
com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:158)
        at
com.sun.enterprise.webservice.ClientSecurityPipe.processSecureRequest(ClientSecurityPipe.java:159)
        at
com.sun.enterprise.webservice.ClientSecurityPipe.process(ClientSecurityPipe.java:147)
        at
com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:79)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
        at com.sun.xml.ws.client.Stub.process(Stub.java:235)
        at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
        at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
        at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
.........

The client for the EJB endpoint service works fine! I can't find
anything on google and have spend some time tweaking settings, trying
various things, etc... and can't figure this one out. Any ideas?


Thanks,
Ryan