Forum Discussion

alcocolino's avatar
alcocolino
New Member
5 years ago

Unable to get an .xlsx file as an attachement in rest api response

Hi!

I'm trying to get a xlsx file as an attachment in response of an REST API, however for some reason I'm failing and the attachment list remains empty. the SoapUI keeps returning an html reponse stating "unsupported content-type [application/vnd.openxmlformats-officedocument.spreadsheetml.sheet]" while the status code is 200 for the data, so the file is there. Also, I double checked with swagger and i was able to download the attachement there without any issues. Anyone knows how to fix this? 

1 Reply

  • Guigz's avatar
    Guigz
    Occasional Contributor

    I changed the "Keys" manipulation part for "if else" that click directly the chosen item separately instead of trying to do it dynamically. This might not be viable for combobox with a lot of items, but I only had 4 and it seem to work in my case. 

    • Guigz's avatar
      Guigz
      Occasional Contributor

      When I manually try to reproduce the steps, the window stay open as I would expect.

      • Guigz's avatar
        Guigz
        Occasional Contributor

        I just saw that before clicking the button I select an item from a combobox dropdown using the Keys("[Up]") and Keys("[Enter]"). If I don't do that part the window don't disappear, but I still need to do that part