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:
- Copy the
/applications/examples/applications-child-context.xml
file to the "applications" folder. - Enter your SharePoint server URL as
siteRoot
property value ofcopyServiceClient
bean inapplications-child-context.xml
. - Activate the
DocumentJob
rule. In Web Central, use: System / Add-In Manager / Define Workflow Rules.
- Select
DocumentJob
, change the value of Active? to Yes, and click on the Save button.
- 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: