]
RH Bugzilla Integration commented on TEIIDDES-2359:
---------------------------------------------------
Debi Rieden <drieden(a)redhat.com> changed the Status of [bug
Teiid Designer sends header-accept="application/xml" when
trying to import from REST JSON
-----------------------------------------------------------------------------------------
Key: TEIIDDES-2359
URL:
https://issues.jboss.org/browse/TEIIDDES-2359
Project: Teiid Designer
Issue Type: Enhancement
Affects Versions: 8.6.1
Environment: Windows 7
Reporter: Matus Makovy
Fix For: 8.6.1, 9.0.1, 9.1
Attachments: 1.png, 2.png, 3.png, 4.png, 5.png, 6.png, log.txt,
WSWizardUtils_BZ1148002.patch
I have my small web application that should simulate a REST web service (it simply
returns XML and JSON strings), when I have annotation
@Produces("application/json") and I try to import from this REST JSON, TD gives
me an error that server returned response code 406.
After I change it in my application to @Produces("application/xml") it is OK.
I tried to force server to log accept-headers that it is sending. Server sends
accept-headers: aplication/xml (Log attached)
Screenshots attached
TD 8.6.1.Alpha1 + DV 6.1.ER2
I am not sure, but I think this issue occurs also in 8.3.4