When I add / remove a lead to / from a static list I am using the listOperation method. The add / remove operations work if I use the LeadKeyRef of IDNUM however I get an SOAP fault when I try use LeadKeyRef of EMAIL. Specifically, I get 20102 - Input error.
Based on the documentation it is not clear if listOperation should work for any value of LeadKeyRef. Does listOperation simply not work for LeadKeyRef of EMAIL or is there something else going on here?
This is how I format the key for a successful call:
LeadKey key = new LeadKey();
key.setKeyType(LeadKeyRef.IDNUM);
key.setKeyValue("160");
This is who I create the key for a call that results in a SOAP fault – no other differences in my code:
LeadKey key = new LeadKey();
key.setKeyType(LeadKeyRef.EMAIL);
key.setKeyValue("mangelo@mailinator.com");
The resulting SOAP fault:
javax.xml.ws.soap.SOAPFaultException: 20102 - Input error
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:119)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
at com.sun.proxy.$Proxy34.listOperation(Unknown Source)
at deprecated.ListOperation.main(ListOperation.java:86)
Thanks in advance for any help!