[jboss-user] [JBoss Web Services] - Re: Problem: Unsupported content type: text/plain
Nizar Garrache
do-not-reply at jboss.com
Tue Apr 3 15:08:05 EDT 2012
Nizar Garrache [https://community.jboss.org/people/ngarrache] created the discussion
"Re: Problem: Unsupported content type: text/plain"
To view the discussion, visit: https://community.jboss.org/message/728090#728090
--------------------------------------------------------------
Hi,
I found the following in the source code of JBossWS 3.1.2.SP7 (MessageFactoryImpl.java)
else if (isSoapContent(contentType) == false)
{
throw new SOAPException("Unsupported content type: " + contentType);
}
private boolean isSoapContent(ContentType type)
{
String baseType = type.getBaseType();
return MimeConstants.TYPE_SOAP11.equalsIgnoreCase(baseType) || MimeConstants.TYPE_SOAP12.equalsIgnoreCase(baseType);
}
And in MimeConstants.java
public static final String TYPE_TEXT_XML = "text/xml";
public static final String TYPE_SOAP11 = TYPE_TEXT_XML;
public static final String TYPE_SOAP12 = "application/soap+xml";
So technically what I want to do is impossible :(
Now I'm tryng to patch this classes until the partner update its server.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728090#728090]
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/20120403/362a7bc7/attachment.html
More information about the jboss-user
mailing list