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&...]