D6 provides an SDK for developing custom web services and clients using DFS (Documentum Foundation Services). When I started playing with it, the first thing I wanted to do was to see that the sample code works. I also found that the DFS Development Guide describes the use of the SDK in good detail. The sample service that I tried was AcmeCustomService
.
I ran into a few issues but they were not too much to overcome. Following are the key things to keep in mind if you are trying this for the first time:
- In the sample code, replace the host IP and port number everywhere with the correct values.
- The
build.xml
file refers todfs.sdk.libs
variable, but it is not defined anywhere. This can be added to thebuild.properties
file. However, it is more appropriate to add it to thebuild.xml
as follows:
<property name="dfs.sdk.libs" value="${dfs.sdk.home}/lib"/>
- The
packageService
target packages thedfc.properties
file from outside theAcmeCustomService
folder. Any changes to thedfc.properties
files under theAcmeCustomService/etc
folder are ignored. These can be fixed as follows:
<path location="${basedir}/etc/dfs.properties"/>
<path location="${basedir}/etc/dfc.properties"/> - I found this to be the easiest way to do the build:
ant clean artifacts package