function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Naresh.ReddyNaresh.Reddy 

how to catch more than one strings in webservice

hi,

     I am developing a webservice in Apex. The xml file is like:

<?xml version="1.0" encoding="UTF-8" ?>
- <Body>
- <InvoiceRequest>
- <Item>
  <ItemName>num1</ItemName>
  <ItemPrice>$11.0</ItemPrice>
  <ItemId>01278390921098209AB872190</ItemId>

 <ItemId>01278390921098209AB872191</ItemId>
  <ItemType>NULL</ItemType>
  </Item>
</Body> 

So, there will be more than one id's, . So in webservice map will not work. So how can handle this.  PLease its urgent.....Thanx in advance....

Jeff MayJeff May

If you need to map incoming data, you'll need to find a unique identifier (in your example OrderNumber seems OK).  If you just need to process each of the items being recieved, you can use a List instead of a Map.