Forum Discussion

JanHoeve's avatar
JanHoeve
New Contributor
15 years ago

Missing xml elements when switching from form to XML view

When importing a soapui project and then opening a request, soapui pro 3.5 wil open the form editor by default.
If I switch then to the XML editor, I notice some xml elements are just missing. (They ARE in the project on disk when inspecting with a xml editor)

When I change in file/preferences/soapuipro the 'Default request editor' to Source, import the project and open the request, the xml elements are available now.

I think this is a major bug!
  • Hi!

    The form editor removes empty elements automatically, maybe that is what is happening?

    regards!

    /Ole
    eviware.com
  • JanHoeve's avatar
    JanHoeve
    New Contributor
    No sorry, that's not the case.

    Say i have to following xml structure:


    <outer>
    <First>some text</First>
    <Second>some second text</Second>
    <Third>some third text</Third>
    </outer>


    It will be changed to:
     
    <outer>
    <First>some text</First>


    </outer>

    including the empty lines.
  • Hi!

    ah.. then it is related to the WSDL, can you attach it for debugging?

    regards!

    /Ole
    eviware.com
  • JanHoeve's avatar
    JanHoeve
    New Contributor
    Sorry this wsdl contains some private information 

    But I can show the piece of wsdl on which the piece of xml above is compliant with:

    <element name="outer" type="ns:outer"/>

    <complexType name="outer">
    <choice maxOccurs="unbounded">
      <element minOccurs="0" name="First" type="ns:firstType"/>
      <element minOccurs="0" name="Second" type="ns:secondType"/>
      <element minOccurs="0" name="Third" type="ns:thirdType"/>
    </choice>
    </complexType>