Forum Discussion

Ton636's avatar
Ton636
Contributor
12 years ago

[Reg] Duplicate representations added when media-type blank

Hi,

I have noticed this since I started using soapUI with a much older version (I'm now at 4.5.1), and I am not even sure if it is a bug, but at the least it is odd.

In my defined resources, on the methods, soapUI will try and auto add any response representation (?) as I go along. However, it seems that if a reply has no Media-Type returned, it will add duplicate representations, which start to bloat up the project. See screenshot. You will see there are several unique entries, all with a Media-Type, but lots of duplicate ones without. I have not added any of these Representations manually, they just showed up over time as I ran tests, ran into bugs with our API etc.

Regards,
Ton

6 Replies

  • Hi,

    Can you upgrade to SoapUI Pro 4.6.1 and see if you see the same problem?
    There have been improvements with REST testing with 4.6.1.


    Regards,
    Marcus
    SmartBear Support
  • SmartBear Support wrote:
    Hi,

    Can you upgrade to SoapUI Pro 4.6.1 and see if you see the same problem?
    There have been improvements with REST testing with 4.6.1.


    Regards,
    Marcus
    SmartBear Support


    Took me a while, but I see the same thing still in 4.6.2.

    I cannot figure out how to replicate this consistently, I wonder if it is related to any instance when I may have run that particular call and could not reach the server or something, because it certainly doesnt happen too often... But here is some recently added entries from one of my service.xmls. Note they are identical and definitely added 'automatically' - I did not manually update the responses for that call.

    <con:representation type="RESPONSE">
    <con:mediaType xsi:nil="true"/>
    <con:status>0</con:status>
    <con:params/>
    <con:element>data</con:element>
    </con:representation>
    <con:representation type="RESPONSE">
    <con:mediaType xsi:nil="true"/>
    <con:status>0</con:status>
    <con:params/>
    <con:element>data</con:element>
    </con:representation>
  • Hi,

    The representations are created by received responses. You can try deselecting Auto-Create in the Representations tab to stop populating that error.



    Regards,
    Marcus
    SmartBear Support
  • Hi Marcus,

    Thanks for the reply. But I actually like the auto-created responses, just not the duplicate ones I will turn it off though and wait for a fix, I guess.

    Regards,
    Ton

    SmartBear Support wrote:
    Hi,

    The representations are created by received responses. You can try deselecting Auto-Create in the Representations tab to stop populating that error.



    Regards,
    Marcus
    SmartBear Support
  • Hi!

    We've verified that this is a bug and have registered an issue for it in our bug tracker (SOAP-1318).
    We'll let you know as soon as we have more information about this.

    Sorry for the inconvenience.

    --
    Regards

    Erik
    SmartBear Sweden