In Posts 1 and 2, we covered installing Windows SharePoint Services(WSS) 3.0 and installing the BizTalk – WSS Adapter web service. In this post I will walk through a simple integration scenario that will cover posting a document to a SharePoint document library.
Sending documents to a SharePoint library
- First thing we will need to do is create a document library where we can post documents to. From the Web Application that you created in Post 1, click on the “Site Actions” tab in the top right corner and click “Create”
- Click on “Document Library”
- Give your document library a name and make a note as you will need the name of this library when populating the send port in BizTalk.
- You will now need to add the BizTalk host instance user to this site so that you can write to this particular document library. To do this click on the “Site Actions” dropdown and select “Site Settings”
- Click on “People and Groups”
- Click on “Add Users”
- Provide your Host Instance with “Contribute” permissions and restart your BizTalk Host Instance.
- In the BizTalk Admin console, create a new application - I called mine “SharePointPOC”. I then created a Receive Port and Receive Location that looks for xml documents via the FILE Adapter.
- Create a Send Port and specify the “Windows SharePoint Service” as the transport type.
- If you provided your Web Application with a non-standard port (anything other than 80) then you will want to make this change here. You will also need to provide the name of the document library that we created in a previous step. In my sample, my document library is called “Inbound Documents”. Finally, you will need to provide the base URL to your site. In my example, this equates to http://MyServer:99/sites/BizTalk%20Repository/
- You will now need to create a filter that will ensure any documents that are processed from the Receive Port, that you created, will now get sent to SharePoint.
- Ensure your application is started and drop a file into the file drop folder that will match your file mask
- If everything is configured correctly, you should now find a file in your document library in SharePoint
Check out Post 4 where I describe how to pull documents from SharePoint.