Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2359

Teiid Designer sends header-accept="application/xml" when trying to import from REST JSON

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 8.6.1, 9.0.1, 9.1
    • 8.6.1
    • None
    • None

    Description

      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

      Attachments

        1. 1.png
          1.png
          32 kB
        2. 2.png
          2.png
          77 kB
        3. 3.png
          3.png
          49 kB
        4. 4.png
          4.png
          33 kB
        5. 5.png
          5.png
          39 kB
        6. 6.png
          6.png
          58 kB
        7. log.txt
          5 kB
        8. WSWizardUtils_BZ1148002.patch
          2 kB

        Activity

          People

            Unassigned Unassigned
            mmakovy@redhat.com Matus Makovy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: