Example: Document Job: Uploading Documents from Web Central to SharePoint Server

This is an example of a job uploading documents from Web Central to Microsoft SharePoint server, using web services.

Limitations

The current implementation of CopyServiceClient uses the CXF framework to implement web service client. It only works with Sun JDK, in Windows OS, and uses Windows OS user account under which Web Central is running, to authenticate with SharePoint server.

Example Files

The implementation is located in the /schema/ab-products/solutions/common/src/main/com/archibus/webservice/document/ folder. The job is implemented in the DocumentJob Java class.

The DocumentJob bean and supporting beans are defined in /applications/examples/applications-child-context.xml

Procedure

To demonstrate this example in Eclipse:

  1. Copy the /applications/examples/applications-child-context.xml file to the "applications" folder.
  2. Enter your SharePoint server URL as siteRoot property value of copyServiceClient bean in applications-child-context.xml.
  3. Activate the DocumentJob rule. In Web Central, use: System / Add-In Manager / Define Workflow Rules.
  1. Use the /schema/ab-products/solutions/common/ab-ex-webservice.axvw view: click on the “Upload Document” button. You will see the following in your SharePoint server: