<?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>fooshen's : InfoPath 2007</title><link>http://blogs.msdn.com/fooshen/archive/tags/InfoPath+2007/default.aspx</link><description>Tags: InfoPath 2007</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>The Form has been closed. Or has it?</title><link>http://blogs.msdn.com/fooshen/archive/2008/01/03/the-form-has-been-closed-or-is-it.aspx</link><pubDate>Thu, 03 Jan 2008 11:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6964959</guid><dc:creator>fooshen</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/fooshen/comments/6964959.aspx</comments><wfw:commentRss>http://blogs.msdn.com/fooshen/commentrss.aspx?PostID=6964959</wfw:commentRss><description>&lt;P&gt;Developing with forms services, especially with Workflow; usually turns out to be a love-hate affair - it has enough twists and turns to put a bag of pretzels to shame. One of the most frustrating errors (gauged from the amount of "help needed!" posts in newsgroups) - the infamous "The Form has been closed" message, usually occurs to Workflow association, Initiation, or task modification forms. Upon closer inspection in SharePoint's log files, the most common message is: &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;EM&gt;"The specified form cannot be found".&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If the workflow host (in this case, SharePoint) could not see your wickedly awesome form that you have spent the entire week developing, the first place to check is the worfklow xml file (workflow.xml, by default). We have all checked, double-checked, triple-checked the form URNs that was supposed to be the guy who will tell SharePoint how to locate our forms that has been uploaded from our workflow feature, but still it could not locate the forms!&lt;/P&gt;
&lt;P&gt;One item of note is that we have to understand the difference when we "Save" a form template, and when we "Publish" them. Note that if you publish the form under a different name from the one that was saved, the Form URN is different between them. The URN that we need to specify should be the one that we publish. &lt;/P&gt;
&lt;P&gt;Here's an illustration:&lt;/P&gt;
&lt;P&gt;I created a form, and save it as "Test" in C:\. Subsequently, I published it as "Test Form" in C:\ again.&lt;/P&gt;
&lt;P&gt;The Form URN for the saved form (if I did not close my InfoPath designer, and view the ID, this is what I will get):&lt;/P&gt;&lt;IMG src="http://i88.photobucket.com/albums/k189/fooshen/test.jpg" mce_src="http://i88.photobucket.com/albums/k189/fooshen/test.jpg"&gt;&lt;BR&gt;
&lt;P&gt;And if I open the published form from C:\Test Form.xsn, this is the correct ID:&lt;/P&gt;&lt;IMG src="http://i88.photobucket.com/albums/k189/fooshen/testForm.jpg" mce_src="http://i88.photobucket.com/albums/k189/fooshen/testForm.jpg"&gt;&lt;BR&gt;
&lt;P&gt;Cross check that against your workflow.xml, and you should have it ironed-out in no time :)&lt;/P&gt;
&lt;P&gt;Additional tips: After deploying the workflow feature, you can find all the workflow-related forms uploaded from your Central Administration, Application Management, Manage Form Tempates -&amp;gt; Click on the form in question and view its properties. That will reveal the ID that will be "seen" by SharePoint.&lt;/P&gt;
&lt;P&gt;If all else fails, here is a sure-fire way to determine your form's URN: rename the published form to .cab, double-click&amp;nbsp;to open it. Extract the file manifest.xsf and open in notepad.&amp;nbsp;Locate the &lt;EM&gt;xsf:xDocumentClass&lt;/EM&gt;&amp;nbsp;element that should be right at the top, and check the "name" attribute. This is your form's URN.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6964959" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/fooshen/archive/tags/SharePoint+2007/default.aspx">SharePoint 2007</category><category domain="http://blogs.msdn.com/fooshen/archive/tags/InfoPath+2007/default.aspx">InfoPath 2007</category></item><item><title>Enabling Digital Signatures in InfoPath forms created from pre-defined schemas</title><link>http://blogs.msdn.com/fooshen/archive/2006/11/01/enabling-digital-signatures-in-infopath-forms-created-from-pre-defined-schemas.aspx</link><pubDate>Wed, 01 Nov 2006 06:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:916745</guid><dc:creator>fooshen</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/fooshen/comments/916745.aspx</comments><wfw:commentRss>http://blogs.msdn.com/fooshen/commentrss.aspx?PostID=916745</wfw:commentRss><description>&lt;P&gt;Recently I was working on some InfoPath samples for United Nation's Electronic Documents standards (UNeDOCs: &lt;A href="http://www.unece.org/etrades/unedocs/" mce_href="http://www.unece.org/etrades/unedocs/"&gt;http://www.unece.org/etrades/unedocs/&lt;/A&gt;), and one of the key requirements I am looking at with InfoPath is the ability to digitally sign the form. Sounds like a no-brainer, since this feature is given with InfoPath.&lt;/P&gt;
&lt;P&gt;However, after I happily imported the schema into InfoPath and attempted to enable digital signature:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://i88.photobucket.com/albums/k189/fooshen/blogs/infopath_digitalsignature01.jpg" border=0 mce_src="http://i88.photobucket.com/albums/k189/fooshen/blogs/infopath_digitalsignature01.jpg"&gt; &lt;/P&gt;
&lt;P&gt;Ok, so InfoPath didn't allow me to enable digital signatures. What's wrong with my xsd? &lt;BR&gt;A little click on the least-clicked button in InfoPath (that's the little [?] help button) and a quick search on "Digital Signature" reveals:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://i88.photobucket.com/albums/k189/fooshen/blogs/infopath_digitalsignature02.jpg" border=0 mce_src="http://i88.photobucket.com/albums/k189/fooshen/blogs/infopath_digitalsignature02.jpg"&gt; &lt;/P&gt;
&lt;P&gt;Take note of the... well, NOTE. "If a form template was designed based on an XML Schema, you can enable digital signatures for the form template only if the XML Schema has a node that is in the W3C Xml digital signature namespace". Well, that's compliance for you.&lt;/P&gt;
&lt;P&gt;So, using the all-powerfull killer app (that's NOTEPAD.exe), I open the xsd file and added a new element for my digital signature and point it to the W3C digital signature namespace: &lt;STRONG&gt;&lt;A href="http://www.w3.org/2000/09/xmldsig#"&gt;http://www.w3.org/2000/09/xmldsig#&lt;/A&gt;&lt;/STRONG&gt;&lt;BR&gt;as such:&lt;/P&gt;
&lt;P&gt;&amp;lt;xsd:element name="DigitalSignature"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:complexType&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:sequence&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:any minOccurs="0" maxOccurs="unbounded"&amp;nbsp;namespace="&lt;A href="http://www.w3.org/2000/09/xmldsig"&gt;http://www.w3.org/2000/09/xmldsig&lt;/A&gt;#"&amp;nbsp;processContents="lax"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:sequence&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:complexType&amp;gt;&lt;BR&gt;&amp;lt;/xsd:element&amp;gt;&lt;/P&gt;
&lt;P&gt;Source: &lt;A href="http://www.w3.org/TR/xmldsig-core/#sec-Versions"&gt;http://www.w3.org/TR/xmldsig-core/#sec-Versions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Voila, now InfoPath allows digital signatures&amp;nbsp;on my form!&lt;/P&gt;&lt;IMG src="http://i88.photobucket.com/albums/k189/fooshen/blogs/infopath_digitalsignature03.jpg" border=0 mce_src="http://i88.photobucket.com/albums/k189/fooshen/blogs/infopath_digitalsignature03.jpg"&gt; 
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=916745" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/fooshen/archive/tags/InfoPath+2007/default.aspx">InfoPath 2007</category></item></channel></rss>