<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx</link><description>This question comes up quite often that it deserves its own post. Is there a way to configure one send port to send a message to a variable destination based on a parameter? For instance when using WSS adapter, can you send a message to a different document</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#1837075</link><pubDate>Thu, 08 Mar 2007 18:30:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1837075</guid><dc:creator>Mark Perry</dc:creator><description>&lt;p&gt;Thanks for posting this information. My next question is this; I plan to drop an xml file into one of about 160 document libraries depending on what the Orchestration decides. I've found that in order for InfoPath 2003 to recognise the xml I have to create the InfoPath form first based on the schema, then publish to a document library on Share Point. Would I have to publish the same form 160 times, or is there a quicker way to do this?&lt;/p&gt;</description></item><item><title>RE: Do I have to publish the same form 160 times?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#1840573</link><pubDate>Fri, 09 Mar 2007 02:49:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1840573</guid><dc:creator>Adrian Hamza</dc:creator><description>&lt;p&gt;Do I have to publish the same form 160 times?&lt;/p&gt;
&lt;p&gt;No. You can use the 'Yes' option instead of 'Yes (InfoPath Form Library)', details below. You will still need some script to create the document libraries because the adapter does not create document libraries or folders.&lt;/p&gt;
&lt;p&gt;WSS adapter supports 2 models for integration with InfoPath:&lt;/p&gt;
&lt;p&gt;- the InfoPath integration built in WSS (Form Library) when 'Microsoft Office Integration' is set to 'Yes (InfoPath Form Library)'&lt;/p&gt;
&lt;p&gt;- the adapter implemented integration with InfoPath (works with any document library not only with Form Libraries) when 'Microsoft Office Integration' is set to 'Yes'.&lt;/p&gt;
&lt;p&gt;When using 'Yes (InfoPath Form Library)', there is one InfoPath solution per WSS form library and it's stored in a hidden folder inside the form library. All the documents stored in the form library must have the same XSD schema and they all use the same InfoPath solution. These restrictions don't apply to the next option.&lt;/p&gt;
&lt;p&gt;When using 'Yes' the documents in a document library can use any InfoPath solution and they don't have to have the same XSD schema. All your solutions can be stored in a primary document library (and optionally fallback document library). You will have to create a document library (call it Solutions) that has a Namespace column (single line of text) and upload all your InfoPath solutions in this document library. For each InfoPath solution, edit the Namespace column to specify the target namespace (defined in XSD schema) of the documents that can be opened with that solution. When you create a send port, define the Microsoft Office Integration options so that the adapter will search into your Solutions document library for the appropriate InfoPath XSN solution that can be used to open your XML document.&lt;/p&gt;
</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#1865637</link><pubDate>Mon, 12 Mar 2007 18:20:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1865637</guid><dc:creator>Mark Perry</dc:creator><description>&lt;p&gt;I've created an InfoPath form using the XSD from my Biztalk project and published it to a folder called 'InfoPathSolutions' under the following URL: &lt;a rel="nofollow" target="_new"&gt;&lt;a rel="nofollow" target="_new" href="http://servername/"&gt;http://servername/&lt;/a&gt;InfoPathSolutions/Expenses.xsn"&gt;&lt;a rel="nofollow" target="_new" href="http://servername/"&gt;http://servername/&lt;/a&gt;InfoPathSolutions/Expenses.xsn&lt;/a&gt;. I want to use this as the template for the XML that comes in via Biztalk.&lt;/p&gt;
&lt;p&gt;Within Biztalk I've created a dynamic send port and configured it in an Expression shape. In there I've set the following:&lt;/p&gt;
&lt;p&gt;WSS.ConfigOfficeIntegration = yes&lt;/p&gt;
&lt;p&gt;WSS.Url = &lt;a rel="nofollow" target="_new" href="http://servername/"&gt;http://servername/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;WSS.ConfigTemplatesDocLib = &lt;a rel="nofollow" target="_new" href="http://servername/"&gt;http://servername/&lt;/a&gt;InfoPathSolutions&lt;/p&gt;
&lt;p&gt;WSS.ConfigTemplatesNamespaceCol = Namespace&lt;/p&gt;
&lt;p&gt;I've then created another site underneath my home site called &lt;a rel="nofollow" target="_new" href="http://servername/"&gt;http://servername/&lt;/a&gt;NewSite. Within this I've created a document library called 'Expenses' and I want to drop XML files here and use the InfoPath template to view them. But I keep getting an error in HAT saying that it can't find the folder I've specified as storing the templates. I've tried different combinations of url / non - url but it's almost as though I can't store the templates on a different site to the xml files. Is this true?&lt;/p&gt;
&lt;p&gt;Mark.&lt;/p&gt;</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#1866379</link><pubDate>Mon, 12 Mar 2007 20:10:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1866379</guid><dc:creator>Adrian Hamza</dc:creator><description>&lt;p&gt;Yes it's true. The templates must exist on the same site as the XML document. &lt;/p&gt;
&lt;p&gt;Also you need to specify the name of the document library and not the full/relative URL.&lt;/p&gt;
&lt;p&gt;When creating WSS adapter ports you need to pay attention to the field names, if they don't mention URL then you are required to enter a name. Some fields require names others require relative or full URLs.&lt;/p&gt;
</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#2775160</link><pubDate>Tue, 22 May 2007 00:28:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2775160</guid><dc:creator>Rafael del Corro</dc:creator><description>&lt;p&gt;Hi... I&amp;#180;m trying to communicate BizTalk - Sharepoint following the steps that you show in your video... the following problem appears when the receive location poll to sharepoint:&lt;/p&gt;
&lt;p&gt;The adapter &amp;quot;Windows SharePoint Services&amp;quot; raised an error message. Details &amp;quot;Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.&lt;/p&gt;
&lt;p&gt;any help?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#2850977</link><pubDate>Fri, 25 May 2007 00:32:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2850977</guid><dc:creator>Adrian Hamza</dc:creator><description>&lt;p&gt;This happens when the web service is not found or when it doesn't run for some reason. Basically, BizTalk runtime received back an HTML page with the error instead of XML. &lt;/p&gt;
&lt;p&gt;Did you install and configure the web service? (in BizTalk Setup under Additional Software, in BizTalk Configuration under SharePoint Adapter).&lt;/p&gt;
&lt;p&gt;If yes, make sure that your receive location is using the same port number as the II site where you installed the web service. &lt;/p&gt;
&lt;p&gt;Open the web service web.config (to find it, in IIS select BTSharePointAdapterWS, right click and select open) and remove the &amp;lt;remove name=&amp;quot;Documentation&amp;quot; /&amp;gt; line (or something like that) and then try browsing to the web service to see if it's working.&lt;/p&gt;
</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#3940076</link><pubDate>Wed, 18 Jul 2007 19:53:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3940076</guid><dc:creator>Praveen</dc:creator><description>&lt;p&gt;I am facing the same problem with sharepoint adapter.I tried to doing it above. It didn't work. can anybody please help me out in this&lt;/p&gt;</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#3940617</link><pubDate>Wed, 18 Jul 2007 21:03:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3940617</guid><dc:creator>Adrian Hamza</dc:creator><description>&lt;p&gt;Did you install and configure the web service?&lt;/p&gt;
&lt;p&gt;Did you check your receive location is using the same port number as the II site where you installed the web service?&lt;/p&gt;
&lt;p&gt;Did you browse with IE to the web service and saw that it works?&lt;/p&gt;
&lt;p&gt;If all of these worked, what are the errors that you see in the event viewer or in BizTalk MMC console for the outgoing message?&lt;/p&gt;
&lt;p&gt;If some of the above didn't work, what was the error that you got back?&lt;/p&gt;
</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#6232528</link><pubDate>Thu, 15 Nov 2007 02:48:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6232528</guid><dc:creator>EricPopoff</dc:creator><description>&lt;p&gt;Hello Adrian!&lt;/p&gt;
&lt;p&gt;I've been trying to set the dynamic address for the WSS adapter, but at runtime the adapter can't find the document library. Here is the URL for the document library:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://vpc:27298/sites/AIBErrorHandling/Shared%20Documents/Forms/AllItems.aspx"&gt;http://vpc:27298/sites/AIBErrorHandling/Shared%20Documents/Forms/AllItems.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In SharePoint, I have changed the Shared Documents document library name to AIBErrors. I have 6 &amp;quot;System Source&amp;quot; folders in the AIBErrors doc library, and 3 &amp;quot;Error type&amp;quot; folders under each of those. I am trying to dynamically direct files to the correct folder based on source and type. Here is the dynamic configuration for setting the destination:&lt;/p&gt;
&lt;p&gt;***********************************************&lt;/p&gt;
&lt;p&gt;SendCbeErrorToSharepoint(Microsoft.XLANGs.BaseTypes.Address) = &amp;quot;wss://servername:27298/sites/AIBErrorHandling/AIBErrors/&amp;quot; + cbeError.errSystem + &amp;quot;/&amp;quot; + cbeError.errType;&lt;/p&gt;
&lt;p&gt;***********************************************&lt;/p&gt;
&lt;p&gt;Here is the error I get when I run the application:&lt;/p&gt;
&lt;p&gt;***********************************************&lt;/p&gt;
&lt;p&gt;[Microsoft.SharePoint.SPException] The virtual server that is referenced here is not in the config database.&lt;/p&gt;
&lt;p&gt;This error was triggered by the Windows SharePoint Services receive location or send port with URI wss://servername:27298/sites/AIBErrorHandling/AIBErrors/Agile/Application.&lt;/p&gt;
&lt;p&gt;Windows SharePoint Services adapter event ID: 12310&lt;/p&gt;
&lt;p&gt;***********************************************&lt;/p&gt;
&lt;p&gt;I have tried hard-coding the wss uri, as well as trying to create a different top level document library as a destination. No success in either case...&lt;/p&gt;
&lt;p&gt;In your video you use the path:&lt;/p&gt;
&lt;p&gt;&amp;quot;wss://demobt/sites/WSSAdapterWalkthrough/Lists/Tasks&amp;quot; &lt;/p&gt;
&lt;p&gt;In all of the examples I've seen online for documents they say to use the format:&lt;/p&gt;
&lt;p&gt;&amp;quot;'wss://ServerName/sites/MySite/MyDocumentLibrary/&amp;quot;&lt;/p&gt;
&lt;p&gt;Is there a prefix like &amp;quot;Lists&amp;quot; that should preface the actual doc library name? &lt;/p&gt;
&lt;p&gt;TIA for your help!&lt;/p&gt;
</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#6404283</link><pubDate>Mon, 19 Nov 2007 19:45:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6404283</guid><dc:creator>Ayman</dc:creator><description>&lt;p&gt;Hello Adrian-&lt;/p&gt;
&lt;p&gt;in the 04-WSSAdapter-PropsInOrchestration.wmv video you demonstrated how to create a task by filling its title, status and priority .&lt;/p&gt;
&lt;p&gt;I want to know how do i fill the &amp;quot;Assigned To&amp;quot; field for a new task dynamically from BizTalk.&lt;/p&gt;
&lt;p&gt;i used the following string but it gave me an error:&lt;/p&gt;
&lt;p&gt;Message_Task(WSS.ConfigPropertiesXml)=&amp;quot;&amp;lt;ConfigPropertiesXml&amp;gt;&amp;lt;PropertyName1&amp;gt;Title&amp;lt;/PropertyName1&amp;gt;&amp;lt;PropertySource1&amp;gt;Purchase order trial Task&amp;lt;/PropertySource1&amp;gt;&amp;lt;PropertyName2&amp;gt;Assigned To&amp;lt;/PropertyName2&amp;gt;&amp;lt;PropertySource2&amp;gt;MOL\\\\Administrator&amp;lt;/PropertySource2&amp;gt;&amp;lt;PropertyName3&amp;gt;Status&amp;lt;/PropertyName3&amp;gt;&amp;lt;PropertySource3&amp;gt;Not Started&amp;lt;/PropertySource3&amp;gt;&amp;lt;PropertyName4&amp;gt;Priority&amp;lt;/PropertyName4&amp;gt;&amp;lt;PropertySource4&amp;gt;High&amp;lt;/PropertySource4&amp;gt;&amp;lt;/ConfigPropertiesXml&amp;gt;&amp;quot;;&lt;/p&gt;
&lt;p&gt;any suggestions ?&lt;/p&gt;</description></item><item><title>re: Is there a way to configure one send port to send a message to a document library based on a parameter?</title><link>http://blogs.msdn.com/ahamza/archive/2007/03/07/is-there-a-way-to-configure-one-send-port-to-send-a-message-to-a-document-library-based-on-a-parameter.aspx#8574955</link><pubDate>Thu, 05 Jun 2008 13:42:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574955</guid><dc:creator>Luke</dc:creator><description>&lt;p&gt;Take out the space in the column name&lt;/p&gt;</description></item></channel></rss>