Quantcast
Channel: BizTalk Server Adapters and Adapter Pack Forum
Viewing all articles
Browse latest Browse all 197

How to configure WSS adapter so BizTalk can write to multiple IIS sites

$
0
0

Hi,

I have an issue with the BizTalk WSS adapter hopefully someone can help with. I'll just explain my setup first:  

In my environment I have a BizTalk server and a separate SharePoint server. On SharePoint I have a web application named e.g.http://testsite. As per the documentation, I extended this web application to create an IIS Site for the BizTalk adapter, named e.g. 'BizTalk Adapter Site'. Its URL ishttp://biztalkadaptertestsite.

In BizTalk Configuration on the SharePoint server, for 'WSS Adapter Web Site' I specified 'BizTalk Adapter Site'. The adapter web service is therefore browsable at http://biztalkadaptertestsite/BTSharePointAdapterWS/BTSharePointAdapterWS.asmx.

In my BizTalk app I have a dynamic send port named e.g. Port01, and in the code if I want to write to e.g.http://testsite/sites/Site01/Library01, I do so as follows:

Port01(Microsoft.XLANGs.BaseTypes.Address) = wss://biztalkadaptertestsite/sites/Site01/Library01

I also gave Contribute permissions on http://testsite to the SharePoint Enabled Hosts group (which contains the BizTalk host instance account).

The above all works perfectly. My problem is, I now want to write to a different web application on the same SharePoint server (and therefore a different IIS site).

If I want to write to http://testsite2/sites/Site02/Library02, and I use the same approach in the code, specifying:

Port01(Microsoft.XLANGs.BaseTypes.Address) = wss://testsite2/sites/Site02/Library02

I get an error, which seems to be because the web service cannot be found in testsite2 (see URL in bold):

A message sent to adapter "Windows SharePoint Services" on send port "Port01_axdfghy67890" with URI "wss://testsite2/sites/Site02/Library02" is suspended.

Error details: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators

Request URL: http://testsite2/BTSharePointAdapterWS/BTSharePointAdapterWS.asmx
Request path: /BTSharePointAdapterWS/BTSharePointAdapterWS.asmx

This indicates that BizTalk doesn't 'know' where the adapter web service is installed: instead you specify the SharePoint location you want to write to, e.g.http://sitename/listname, and it simply looks for the web service athttp://sitename/BTSharePointAdapterWS/BTSharePointAdapterWS.asmx.

In other words, it seems you can only write to the IIS site where the adapter is installed. Is this true?

In this article though http://msdn.microsoft.com/en-us/library/aa547280.aspx it says: "The adapter Web service can handle multiple SharePoint sites regardless of whether they are on the same IIS site or on different IIS sites"

Does anyone know if/how I can write to http://testsite2 if the adapter web service is not installed in an IIS site for this web application?

Or, if the adapter web service does have to be in an IIS site for this web application, then how do I install the web service in more than one IIS site? BizTalk Configuration only allows one IIS site to be specified. Should I copy the web service files and add them to my second IIS site manually??

Thanks for your help,

Alyosha


Viewing all articles
Browse latest Browse all 197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>