soapui icon indicating copy to clipboard operation
soapui copied to clipboard

XML Default Response Editor in SOAP Project

Open albertapiadev opened this issue 3 years ago • 60 comments

Is there a way to set the XML view as the default response editor for soap projects? In the latest version 5.7.0 the response is RAW, in previous versions the XML was fine. This is very time consuming for each update that needs to be performed on the test case. Thanks

albertapiadev avatar Jan 13 '22 20:01 albertapiadev

I have the same problem. It was supposed to automatically detect the content type and open that view, as described below. This works for JSON responses but not for XML.

  • Now, SoapUI opens a response editor that matches the response content type. For example, it opens the JSON editor if a response has JSON content.

MDagni avatar Jan 14 '22 15:01 MDagni

SOAP Request uses the Content-Type header of the response to decide whether to open XML or Raw tab.

If the Content-Type contains:

  • only "text/xml", it shows the response in XML tab
  • if it contains also the encoding information, e.g. text/xml;charset=UTF-8, the response is displayed in the Raw tab

REST Request seems to be OK.

karelhusa avatar Jan 17 '22 12:01 karelhusa

if you download 5.6.1 last stable version from https://www.soapui.org/downloads/soapui/soapui-os-older-versions/

it works and display xml tab by default as we used to it

log4j vulnerability also fixed in 5.6.1 if you download again. it uses log4j 2.16 which is fixed version and have necessary lookup variable set in soapui bat file to prevent latest vulnerability CVE-2021-44228

so until soaui fix v 5.7 raw tab issue, you may use 5.6.1 But download again

Imran Barolia

imranbarolia avatar Jan 17 '22 22:01 imranbarolia

Same issue on my side.

derritter88 avatar Jan 19 '22 08:01 derritter88

Since updating to 5.7 , I am having this same issue.

JKL888 avatar Jan 20 '22 17:01 JKL888

Any solution to this?

zetoniazzo avatar Jan 27 '22 17:01 zetoniazzo

In the release notes they write about it. But I guess important set this in some configuration at preferences. Please, think about it.

zetoniazzo avatar Jan 27 '22 17:01 zetoniazzo

Does anyone know if a fix is being worked on for this issue? I tried to go back to version 5.6.1 after upgrading to 5.7.0 but since my projects had been upgraded I got a warning when opening the previous version and the projects were not fully working in version 5.6.1 anymore. So that doesn't seem like a usable solution to this issue.

sigurdurg avatar Jan 28 '22 09:01 sigurdurg

I have created a pull request to fix this issue: https://github.com/SmartBear/soapui/pull/725

It needs to be merged to another version of SoapUI.

karelhusa avatar Feb 02 '22 12:02 karelhusa

When could we expect to see this fixed in a 5.7.1 release? It's a very annoying user experience to always have to click back to the XML tab.

jpraet avatar Feb 17 '22 10:02 jpraet

I can only agree, this bug is very annoying in the daily work routine.

computerkram avatar Feb 21 '22 08:02 computerkram

It's bizarre that this bug still hasn't been fixed...

MJHeijster avatar Feb 24 '22 14:02 MJHeijster

You can download the source code and apply karelhusa's solution, then you just have to generate the jar with maven and problem solved.

serloar avatar Mar 30 '22 14:03 serloar

you just have to generate

meaning install and learn maven first 😄

MDagni avatar Mar 30 '22 14:03 MDagni

Facing same issue in 5.7.0

xs2bharat avatar Apr 05 '22 15:04 xs2bharat

Do devs look at these comments? It's April already

edhCoder avatar Apr 05 '22 16:04 edhCoder

please fix it, it's annoying

k0d3r1s avatar Apr 21 '22 13:04 k0d3r1s

I have the same issue in 5.7.0. Please, fix it asap. Thanks

jiridusil avatar Apr 26 '22 07:04 jiridusil

Hello. I have the same problem on this side. DEV fix the problem as soon as possible please

robbyappel avatar Apr 26 '22 13:04 robbyappel

The current solution as stated before is to go back to 5.6.1 unless something is required/needed from the 5.7 version.

This is probably on the "minor" side of issues and will just have to wait until it is incorporated into a release. (not a dev just looking at it from practical perspective)

Zaf9670 avatar Apr 26 '22 17:04 Zaf9670

The current solution as stated before is to go back to 5.6.1 unless something is required/needed from the 5.7 version.

This is probably on the "minor" side of issues and will just have to wait until it is incorporated into a release. (not a dev just looking at it from practical perspective)

Like I have mentioned previously it is not a usable workaround to go back to version 5.6.1 if you have already upgraded your projects, because they will not work with the older version of SoapUI.

sigurdurg avatar Apr 26 '22 19:04 sigurdurg

Guys, as I can see a lot of people struggling with this issue, I built a workaround for the time being, until the new release of SoapUI comes out. See this short article how to do that.

karelhusa avatar May 02 '22 09:05 karelhusa

I have tested @karelhusa 's solution and it works perfectly. Thank you very much 👍

For those who are skeptical like me; I have compared the old jar and new jar, decompiled the changed class file and the only difference is this:

return contentType.toLowerCase().contains("xml") ? 2 : 0; return contentType.toLowerCase().endsWith("xml") ? 2 : 0;

(sorry @karelhusa , you know you can never trust the internet)

MDagni avatar May 03 '22 15:05 MDagni

Same issue!

Xfox1 avatar May 04 '22 09:05 Xfox1

thanks so much @karelhusa, this works !!

joaquinfigueroa avatar May 13 '22 19:05 joaquinfigueroa

@karelhusa appreciate the workaround!

cstazo avatar May 16 '22 17:05 cstazo

If you scrolled down until here and is still having the same issue, you can install the version 5.6.1 (as mentioned above by @imranbarolia): https://www.soapui.org/downloads/soapui/soapui-os-older-versions/

I've uninstalled the version 5.7.0 and 5.6.1 worked like a charm.

Jefferson227 avatar Aug 26 '22 18:08 Jefferson227

@karelhusa It works!!! Thanks a lot!!!

drazhan avatar Oct 18 '22 11:10 drazhan

Is this tool still maintained or should I start looking for something else? It's been close to a year since the original report with the only alternative being to downgrade with seemingly security vulnerabilities.

I understand that this is an open source project, but it's still advertised on the main website next to a paid product.

linaori avatar Nov 09 '22 12:11 linaori

@linaori We need to make the conclusion ourselves; this is mine.

karelhusa avatar Nov 09 '22 20:11 karelhusa