wash_out icon indicating copy to clipboard operation
wash_out copied to clipboard

Changing xsi:type for arrays

Open ramanbuttar opened this issue 6 years ago • 0 comments

How can I produce the following output for my errors array as part of my XML response?

<Errors soapenc:arrayType="tns:Error[0]" xsi:type="soapenc:Array" />

I am calling render soap: {errors: []} to try to produce my result. There are no issues with mismatches with my return definition. Calling render soap: {errors: [{item: 1}]} works just fine.

There are three issues for me:

  1. Updating the xsi:type to be soapenc:Array
  2. Adding the metadata of soapenc:arrayType="tns:Error[0]" where 0 corresponds to number of children nested under this node
  3. Rendering empty node when the array is empty

ramanbuttar avatar Nov 16 '18 04:11 ramanbuttar