Forum Discussion

Lyndon_Hughey's avatar
Lyndon_Hughey
New Contributor
17 years ago

XML view removing empty optional parameters

Is there a way to send preserve an empty optional parameter in a web service when in XML view?  It seems as if the xml view strips all optional parameters that dont have a value.  Is there a work around to this?  I know that your earlier versions of the product did not remove empty optional parameters from the request.

thanks
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Lyndon,

    soapUI shouldn't be removing them by default, maybe you have selected the "Remove Empty.." option in the bottom left properties for the request?

    regards!

    /Ole
    eviware.com
  • thanks for the reply. I have confirmed that the remove empty option is set to false.  Keep in mind that the empty element is only removed after you view it in form view, then move to another view (XML view for instance).  You should be able to reproduce this issue by going to form view and removing the value of an element then clicking on the xml view.  The element should be removed.

    thanks
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    sorry, then I misunderstood. The form-editor removes non-required non-nillable elements, propbably these are optional in your schema!?

    regards,

    /Ole
    eviware.com