my webservice is working for new account,contact insert if second time same account is request at that time contact2 is not inserting under that existing account, but it preventing to insert same account second time.may i know why it happens my code is.
webservice static ResponseClass method(RequestClass req){
for(integer j=0;j<contactsj++)
{
con = new Contact();
con.LastName = clName;
con.FirstName =cfName;
con.Email = email;
con.MobilePhone = mobile;
con.accountId = srList[i].id;
contactList.add(con);
}
insert contactList;
}
}
return res;
}