Midrange News for the IBM i Community


Posted by: TFisher
Web service on the iSeries
has no ratings.
Published: 06 Jun 2013
Revised: 11 Jun 2013 - 3309 days ago
Last viewed on: 02 Jul 2022 (5790 views) 

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.

Web service on the iSeries Published by: TFisher on 06 Jun 2013 view comments(15)

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?

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS