You need to sign in to do that
Don't have an account?
Naresh.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....
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.