BizTalk WSS Adapter: HTTP 401.2 – Unauthorized: Logon failed due to server configuration

Continuing my experience of attempting to configure the WSS adapter for a clients BizTalk/SharePoint integration project.  As mentioned in my previous post I was having an authentication issue between the clients SharePoint and BizTalk instances.  The message I was getting back (not in BizTalk unfortunately) was the following 401.2 message.

“HTTP 401.2 – Unauthorized: Logon failed due to server configuration”

Now this turned out to be due to the fact that the site which had the WSS adapter installed was configured to use Kerberos authentication, as I could not see a place to configure the adapters authentication method to use Kerberos I assumed that it was probably trying to connect via NTLM authentication instead, causing the error.  To get around this I completed the following steps.

1. Extended the SharePoint site
2. Configured the extended site to use NTLM authentication
3. Added the new site to the alternate access mappings
4. Removed the WSS adapter from the existing site
5. Installed/configured the WSS adapter on the newly extended site.
6. Modified the send port in BizTalk to use the new URL

Once I had completed these steps I was able to communicate with the SharePoint Server.

BizTalk WSS Adapter: RequestFailed: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

Whilst attempting to set up the WSS adapter for a client I was receiving the following error when trying to call the WSS adapter web service.

“RequestFailed: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF”

This seemed to me to be an issue where BizTalk was receiving an error that it could not understand.  Sure enough after installing NetMon and looking at the requests between the BizTalk server and the SharePoint server I noticed that the actual message was a 401.2 authentication error message, but for some reason BizTAlk could not read/display the correct message.

Server Error in ‘/BTSharePointAdapterWS’ Application: Request format is unrecognised

Whilst configuring the SharePoint Adapter for BizTalk for a client today, I came across a couple of issues. The first error made me think that I had really screwed up the installation of the WSS adapter.  I was getting the following error when trying to browse to the web service.

“Request format is unrecognized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Request format is unrecognized”

Thanks to a blog post by Kent Weare (which can be found here http://kentweare.blogspot.com/2010/05/sharetalk-integration-wss-adapter-web.html), I was able to resolve this by removing the following setting from the web services web.config file.

<webServices>
    <protocols>
        <!–<remove name=”documentation”/>–>
    </protocols>
</webServices>

As soon as I commented out this line I was able to browse to the web service successfully.