[
https://issues.jboss.org/browse/TEIIDDES-2055?page=com.atlassian.jira.plu...
]
Ted Jones edited comment on TEIIDDES-2055 at 2/18/14 11:31 AM:
---------------------------------------------------------------
This is due to TeiidXmlImportSourcePage hard-coding the Content-Type on the HttpConnection
to application/xml. The generated REST service sets the charset and so the 406 is thrown.
Changing TeiidXmlImportSourcePage to use Content-Type=application/xml;charset=MacRoman (in
my case) fixes this. This will be an issue for any REST service that specifies anything
other than application/xml. We should allow the user to override the HTTP Headers in the
importer.
The REST Connection Profile should be modified to allow for name-value pairs of HTTP
Headers. The user could then enter for example:
Header Name Header Value
Content-Type application/xml;charset=somecharset
This should overwrite our default value in TeiidXmlImportSourcePage which is
"application/xml". If that value is entered by the user, the default should be
used. The same would apply for the "Accept" header value.
was (Author: tejones):
This is due to TeiidXmlImportSourcePage hard-coding the Content-Type on the
HttpConnection to application/xml. The generated REST service sets the charset and so the
406 is thrown. Changing TeiidXmlImportSourcePage to use
Content-Type=application/xml;charset=MacRoman (in my case) fixes this. This will be an
issue for any REST service that specifies anything other than application/xml. We should
allow the user to override the HTTP Headers in the importer.
HTTP 406 Importing Generated REST Service as Source
---------------------------------------------------
Key: TEIIDDES-2055
URL:
https://issues.jboss.org/browse/TEIIDDES-2055
Project: Teiid Designer
Issue Type: Bug
Components: Web Services Support
Affects Versions: 8.3.1
Reporter: Ted Jones
Assignee: Ted Jones
Fix For: 8.4, 8.3.2
I generated a REST service from Designer and then tried to use as a source. I received a
406 (Not acceptable) error.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira