Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing xsi:type for arrays #260

Open
ramanbuttar opened this issue Nov 16, 2018 · 0 comments
Open

Changing xsi:type for arrays #260

ramanbuttar opened this issue Nov 16, 2018 · 0 comments

Comments

@ramanbuttar
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant