hi i am calling a web service , which is calling a savedsearch.. see below.
soap data is included...
i am trying to get the internalId values in c#.
--------------------this is the C# code call-----------------------------
public List<PBDRaw> SearchItem(string searchId)
{
List<PBDRaw> items = new List<PBDRaw>();
ItemSearchAdvanced _itemSearch = new ItemSearchAdvanced();
_itemSearch.savedSearchId = searchId;
try
{
SearchResult results = _service.search(_itemSearch);
if (results.status.isSuccess)
{
foreach (SearchRow searchRow in results.searchRowList)
{
ItemSearchRow itemSearchRow = (ItemSearchRow)searchRow;
PBDRaw item = new PBDRaw();
if (itemSearchRow.basic != null)
{
item.Name = itemSearchRow.basic.itemId[0].searchValue;
if (itemSearchRow.basic.salesDescription != null)
{
item.Description = itemSearchRow.basic.salesDescription[0].searchValue;
}
if (itemSearchRow.basic.basePrice != null)
{
item.BasePrice = Convert.ToDecimal(itemSearchRow.basic.basePrice[0].searchValue);
}
if (itemSearchRow.basic.type != null)
{
item.Type = itemSearchRow.basic.type[0].searchValue;
}
items.Add(item);
}
}
}
catch (Exception ex)
{
//send an email here
}
return items;
}
-----------------this is the xml--------------------------------------------
<platformCore:searchRow xsi:type="listAcct:ItemSearchRow" xmlns:listAcct="">
<listAcct:basic xmlns:platformCommon="">
<platformCommon:itemId>
<platformCore:searchValue>4G Samsung Galaxy S 2 X Finished Goods</platformCore:searchValue>
</platformCommon:itemId>
<platformCommon:memberItem>
<platformCore:searchValue internalId="199"/>
</platformCommon:memberItem>
<platformCommon:type>
<platformCore:searchValue>_assembly</platformCore:searchValue>
</platformCommon:type>
</listAcct:basic>
<listAcct:memberItemJoin xmlns:platformCommon="urn:common_2011_2.platform.webservices.netsuite.com">
<platformCommon:type>
<platformCore:searchValue>_inventoryItem</platformCore:searchValue>
</platformCommon:type>
</listAcct:memberItemJoin>
</platformCore:searchRow>
as you see above , i need to know in C# how to retreive the reference to the memberitem or the internalid...
thanks