Forum Discussion

kdaham's avatar
kdaham
Occasional Contributor
12 years ago

[Registered] 4.6.2 REST and json

Updated recently to 4.6.2, loaded a wadl file, SoapUI tries to be smart and builds a request object from the schema, only problem is that needs to be sent as json, I change mediatype and add a json object in the request tab, but after switching to the From tab and back to the Request tab it has been overwritten with the xml representation. Is this really a sane behaviour?

As it is now the wadl capability is pretty broken, cant handle different media types, sets up wrong paths more often than not, you cant reread the wadl file, and now it overwrites the request based on what it thinks needs to be sent?
  • Hi,

    I can't reproduce any of the things you listed. Also if you are a Pro user you can post in the SoapUI Pro forum (saying since you have access to the Form editor). I'm able to switch to the different editors and the media type does not change if I use JSON. If your able to post your project showing that behavior then please do so.
  • kdaham's avatar
    kdaham
    Occasional Contributor
    Open the POST - create -> Request 1

    paste some json or any string for that matter in the Request tab, then switch to From and then back.
    The problem is that it assumes it should be xml, despite whats in the wadl file (namely application/json), in order to change the data
    you will have to remove the request object under the Representation tab in the "POST - create" widget (all this clicking isn't really intuitive either),
    which kind of defeats the purpose of importing in the first place.
  • Hi,

    I was able to reproduce what you posted. This looks like a bug. I will say that this wadl file is including a xsd file <include href="application.wadl/xsd0.xsd"> which could be throwing off the editor.
  • Hi,

    I have created an internal defect of SOAP-1219.
    The current workaround is not to click the Form or Outline tab.


    Thanks.