[jboss-user] [JBoss Web Services] - Problem: Unsupported content type: text/plain
Nizar Garrache
do-not-reply at jboss.com
Mon Apr 2 16:56:46 EDT 2012
Nizar Garrache [https://community.jboss.org/people/ngarrache] created the discussion
"Problem: Unsupported content type: text/plain"
To view the discussion, visit: https://community.jboss.org/message/727847#727847
--------------------------------------------------------------
Hello,
We have a working EAR deployed on a JBoss EAP 5.1 and using Seam 2.2.2EAP5 et JBossWS 3.1.2.SP7.
We implemented a Soap Client which doesn't work if the received response has the HTTP header: content-type: text/plain.
If this header is not found or equal to text/xml the soap client works.
Here is the top of the stack trace:
22:52:27,454 ERROR [SOAPMessageUnMarshallerHTTP] Cannot unmarshall SOAPMessage
javax.xml.soap.SOAPException: Unsupported content type: text/plain
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:272)
at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:82)
at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:584)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:381)
at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:232)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:162)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)
at org.jboss.remoting.Client.invoke(Client.java:2034)
at org.jboss.remoting.Client.invoke(Client.java:877)
at org.jboss.remoting.Client.invokeOneway(Client.java:926)
at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:228)
at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:360)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:231)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:171)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:157)
at $Proxy427.beginConversation(Unknown Source)
at com.oberthur.issuersimulator.session.TsmSpSimulatorBean.beginConversationRequest(TsmSpSimulatorBean.java:431)
at com.oberthur.issuersimulator.session.TsmSpSimulatorBean.beginConversationKeyRotation(TsmSpSimulatorBean.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.intercept.RootInvocationCont
Please, can you help me ?
Please note, that we want to accept the text/plain type.
Thanks,
Nizar,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/727847#727847]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120402/e984646f/attachment-0001.html
More information about the jboss-user
mailing list