Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
I have a web service that I am working on that needs to accept arrays as input parameters. The problem is that the XML is ugly. Is there any way to allow a well-formed XML request to be made?
Right now the XML must look like this:
<Item>SKU1</Item>
<Item>SKU2</Item>
<Qty>1</Qty>
<Qty>2</Qty>
<Price>1.22</Price>
<Price>2.22</Price>
But I want it to look like this:
<OrderLine>
<OrderLine>
<Item>SKU1</Item>
<Qty>1</Qty>
<Price>1.22</Price>
</Product>
<Product>
<Item>SKU2</Item>
<Qty>2</Qty>
<Price>2.22</Price>
</OrderLine>
</OrderLines>
Is there something in Webshere I can do to allow this format to be accepted?