<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Submit Form data to Sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3895.aspx</link><pubDate>Mon, 29 Jan 2007 14:57:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3895</guid><dc:creator>Afzal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3895</wfw:commentRss><description>Hi Shiva,&lt;br /&gt;&lt;br /&gt;Thanks for your reply, I have a question regarding the HTTPWebRequest, Can we write (translate) the code in jScript?&lt;br /&gt;&lt;br /&gt;Thanks once again,&lt;br /&gt;&lt;br /&gt;-Afzal</description></item><item><title>Re: Submit Form data to Sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3894.aspx</link><pubDate>Thu, 25 Jan 2007 05:19:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3894</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3894.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3894</wfw:commentRss><description>Hi Afzal,&lt;br /&gt;&lt;br /&gt;As of your requirement sub form of is set of nodes right. You need to get the parent node of that group of nodes. After getting the node you need to get the xml using below the code.&lt;br /&gt;&lt;br /&gt;//Get the sub form node&lt;br /&gt;IXMLDOMNode subformNode = thisXDocument.DOM.selectSingleNode("XPath of your node");&lt;br /&gt;//Get XML string node&lt;br /&gt;string xmlStringNode = subformNode.xml;</description></item><item><title>Re: Submit Form data to Sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3893.aspx</link><pubDate>Wed, 24 Jan 2007 15:06:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3893</guid><dc:creator>Afzal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3893</wfw:commentRss><description>Hi Shiva,&lt;br /&gt;&lt;br /&gt;Thanks for your response, but I have another question regarding the sub form xml, how do I get the sub for xml. I know it sound stupid but I am stuck with this and really need your help.&lt;br /&gt;&lt;br /&gt;Your help is greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Afzal</description></item><item><title>Re: Submit Form data to Sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3892.aspx</link><pubDate>Wed, 24 Jan 2007 13:23:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3892</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3892.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3892</wfw:commentRss><description>Hi Afzal,&lt;br /&gt;&lt;br /&gt;We can submit the form using HTTPWebRequest. In below code you need to pass the two arguments.&lt;br /&gt; &lt;br /&gt;First one is destination url it should be point your sharepoint site and with file name like &lt;a target="_blank" href=http://system1/abc.xml#%92.&gt;http://system1/abc.xml#%92.&lt;/a&gt; For every time submission you need to change your file name as per your requirement.&lt;br /&gt;&lt;br /&gt;Second one is your sub form xml string.&lt;br /&gt;&lt;br /&gt;//Save file using HTTPWebrequest&lt;br /&gt;		private bool SaveFileToSharepoint(string destinationURL, xmlString)&lt;br /&gt;		{&lt;br /&gt;			byte[] bytes = System.Text.Encoding.UTF8.GetBytes(xmlString);&lt;br /&gt;			HttpWebRequest request = (HttpWebRequest)WebRequest.Create(destinationURL);&lt;br /&gt;			request.Method = "PUT";&lt;br /&gt;			request.Credentials = System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;			request.AllowWriteStreamBuffering = true;&lt;br /&gt;&lt;br /&gt;			Stream stream = request.GetRequestStream();&lt;br /&gt;			stream.Write(bytes, 0, bytes.Length);&lt;br /&gt;			stream.Flush();&lt;br /&gt;			stream.Close();&lt;br /&gt;&lt;br /&gt;			HttpWebResponse response = null;&lt;br /&gt;			try&lt;br /&gt;			{&lt;br /&gt;				response = (HttpWebResponse)request.GetResponse();&lt;br /&gt;			}&lt;br /&gt;			catch (WebException ex)&lt;br /&gt;			{&lt;br /&gt;				response = (HttpWebResponse)ex.Response;&lt;br /&gt;			}&lt;br /&gt;&lt;br /&gt;			if (response != null)&lt;br /&gt;			{&lt;br /&gt;				HttpStatusCode statusCode = response.StatusCode;&lt;br /&gt;				response.Close();&lt;br /&gt;				&lt;br /&gt;				if(statusCode == HttpStatusCode.OK || statusCode == HttpStatusCode.Created)&lt;br /&gt;				{&lt;br /&gt;					return true;&lt;br /&gt;				}&lt;br /&gt;				else &lt;br /&gt;				{&lt;br /&gt;					return false;&lt;br /&gt;				}				&lt;br /&gt;			}&lt;br /&gt;			return false;&lt;br /&gt;		}</description></item><item><title>Submit Form data to Sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/1815.aspx</link><pubDate>Tue, 23 Jan 2007 17:05:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1815</guid><dc:creator>Afzal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1815.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1815</wfw:commentRss><description>Is it possible to submit the partial data from an Infopath form to sharepoint form library?&lt;br /&gt;&lt;br /&gt;My scenario:&lt;br /&gt;&lt;br /&gt;I have a form which contains a repeating section for storing some data and when user click save/submit then I want to save the main form as well as create a sub form in the sharepoint form library.&lt;br /&gt;&lt;br /&gt;Any help is greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Afzal</description></item></channel></rss>