users@glassfish.java.net

Web service content type exception

From: Shevland, Joe <joe.shevland_at_capgemini.com>
Date: Mon, 4 Jun 2007 12:15:55 +1000

Hi,

I'm seeing the following exception when connecting to a web service in
Glassfish from a client generated by NetBeans 5.5.1:

[#|2007-06-04T11:45:05.609+1000|SEVERE|sun-appserver9.1|com.sun.xml.ws.t
ransport.http.HttpAdapter|_ThreadID=23;_ThreadName=httpSSLWorkerThread-8
080-1;_RequestID
=c62c6ca6-46cf-4884-8983-f37c222d7580;|Unsupported Content-Type:
application/soap+xml Supported ones are: [text/xml]
com.sun.xml.ws.server.UnsupportedMediaException: Unsupported
Content-Type: application/soap+xml 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:28
0)
        at
com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:
207)
        at
com.sun.xml.ws.transport.http.HttpAdapter.access$500(HttpAdapter.java:74
)
        at
com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter
..java:363)
        at
com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:175)
        at
com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapt
er.java:134)
        at
com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:145)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)

It doesn't actually look to be causing a problem with the request beyond
logging the error. Looking at the requests via a proxy tool, it is
indeed using application/soap+xml as the Content-Type header (inside the
soap envelope looks to be the 'normal' request with a content type of
text/xml). I've tried using the NB configuration tools to turn off the
'wrapped' type but I still see the same error.

I can't work out what I've changed to cause this, anyone have any ideas?
Seems related to the WSIT stuff perhaps but I can't recall tweaking
anything.

Cheers
Joe

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.