ConcourseSuite Support

Support
Corporate
PUBLIC PROFILE

Back to topics

Discuss Development

Deleting a contact using HTTP-XML API

You need to be logged in to post messages

Deleting a contact using HTTP-XML API

5/8/2008 9:04 AM EDT

Is it possible to delete a contact using HTTP-XML API? The documentation specifies that a contact can be deleted, but when I try to use the DataRecord.DELETE action along with the contactId of a contact I get a "Transaction Failed" response. Also here is the output of the log on the server ...

java.lang.NoSuchMethodException: org.aspcfs.modules.contacts.base.Contact.delete(java.sql.Connection)
at java.lang.Class.getMethod(Class.java:1581)
at org.aspcfs.modules.service.base.TransactionItem.doExecute(Unknown Source)
at org.aspcfs.modules.service.base.TransactionItem.execute(Unknown Source)
at org.aspcfs.modules.service.base.Transaction.execute(Unknown Source)
at org.aspcfs.modules.service.actions.ProcessPacket.executeCommandDefault(Unknown Source)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.darkhorseventures.framework.servlets.ControllerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)

I am using Centric Community Edition Version 4.1.3 with Centric Tools 4.0 on Java 1.5. Please help!

1. 5/8/2008 10:30 AM EDT

A Contact can have a list of related documents and the Contact base object did not have a "delete()" method as reported by the error you posted. The Contact object did have a "delete()" method, but needed the path to the fileLibrary to be able to delete the documents related to it.

In 5.0 the API was fixed to provide the path to the files on the fly when a delete() API request was received. You should be able to do this in 5.0...

Hope this helps..

2. 5/8/2008 10:41 AM EDT

So that means it is not possible to delete a contact in 4.0. Can I use the addField method to specify the fileLibrary path?

3. 5/8/2008 10:44 AM EDT

No. You can't specify the path using addField...

You will have to test this in 5.0 and upgrade to 5.0 to be able to delete the contact using the API...

4. 5/8/2008 10:49 AM EDT

I appreciate your help. Thanks!

4 results found