I am using magento api "shoppingCartProductRemove" to remove an item from cart. In "shoppingCartProductEntity" it needs "associativeArray". How to create "associativeArray" and what are the Product custom options in that. I am trying
SoapObject item = new SoapObject(NAMESPACE,"shoppingCartProductEntity");
PropertyInfo pinfo = new PropertyInfo();
String productid = productId.get(deleteProductPosition);
pinfo.setName("product_id");
pinfo.setValue(productid);
pinfo.setType(String.class);
item.addProperty(pinfo);
pinfo = new PropertyInfo();
String productsku = productSku.get(deleteProductPosition);
pinfo.setName("sku");
pinfo.setValue(productsku);
pinfo.setType(String.class);
item.addProperty(pinfo);
pinfo = new PropertyInfo();
int productQty = Qty.get(deleteProductPosition);
pinfo.setName("qty");
pinfo.setValue(productQty);
pinfo.setType(Double.class);
item.addProperty(pinfo);
Map<String, String> map = new HashMap<String, String>();
map.put("key", "options");
pinfo = new PropertyInfo();
pinfo.setName("options");
pinfo.setValue(map.get("key"));
pinfo.setType(Map.class);
item.addProperty(pinfo);
how to create Associative array with options, and what will be the setType of that array. Please let me know