Service Virtualization

  • 1.  Ignoring blank/Nil/Null tag values

    Posted Nov 29, 2016 07:17 AM

    Hi All

     

     Is there any custom setting available in DevTest 9.5.1 using which I can ignore tags which does not hold any values when virtual service is responding back.

     

      <firstname>John</firstname>

      <middlename></middlename>

      <lastname>wick</lastname>   

     

    should return as 

     

    <firstname>John</firstname>

    <lastname>wick</lastname>

     

    Or do I need write my own custom logic to achieve this ?

     

    Appreciate if you can provide some pointers.

     

    Thanks

    Ajay



  • 2.  Re: Ignoring blank/Nil/Null tag values

    Broadcom Employee
    Posted Dec 11, 2016 11:26 PM

    Hi Ajay,

        There is no default step/filter exists to ignore blank tags in xml content. You can write a custom code to achieve your functionality.