Yes I am able to retrieve the lead information by using below code.But I want to automate the process.
Anytime new anonymous lead is added,my process should automatically know about that.
LeadKeySelector keySelector = new LeadKeySelector();
keySelector.setKeyType(LeadKeyRef.IDNUM);
ArrayOfString aos=new ArrayOfString();
aos.getStringItems().add(123456);
keySelector.setKeyValues(aos);
request.setLeadSelector(keySelector);
aos.getStringItems().add(123456);