<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Sandboxed Code + UserProfileService</title><link>https://www.infopathdev.com:443/forums/thread/88354.aspx</link><pubDate>Mon, 25 Mar 2013 18:49:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88354</guid><dc:creator>rgordonj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=88354</wfw:commentRss><description>I have a browser-enabled InfoPath 2010 form with several data connections to various SharePoint web services (User profile service etc - All data connections are packaged as UDCX files and reside in a data connection library.)

The form works absolutely fine UNTIL I add any code at all. Even so much as adding an empty form loading event and publishing the form results in the following error when opening the form: &amp;quot;An error occurred while trying to connect to a Web service.&amp;quot; (BTW, the code retrieves InputParameters from form URL parameters and changes form views depending on the values of the params. - It has been tested and works fine in InfoPath forms WITHOUT data connections which call web services.)

My hunch (and question) is this: Do calls to SP web services not work in conjunction with SandBoxed code? (I would very much like to accomplish my goal WITHOUT having to make the form full-trust/administrator-approved. - In this particular environment all admin-approved infopath forms must be packaged as WSP files  in order to be deployed, no XSNs are accepted.)

If admin-approved is a necessity for this, has anyone successfully packaged an InfoPath 2010 form with managed code and data connections as a WSP? I&amp;#39;ve looked through plenty of blogs/articles but have not had any success.

Any thoughts/feedback would be greatly appreciated. 

Thanks.</description></item></channel></rss>