]
Ted Jones commented on TEIIDDES-2359:
-------------------------------------
Matus, the default value for web service sources is application/xml. If you add an
Optional Request Header value of Accept=application/json in your CP, that will override
the default.
That being said, we should probably be doing that for you. ;)
Tiied 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: Bug
Affects Versions: 8.6.1
Environment: Windows 7
Reporter: Matus Makovy
Attachments: 1.png, 2.png, 3.png, 4.png, 5.png, 6.png, log.txt
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