Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2005

Tip: Looking for answers? Try searching our database.

Programmatically Submit Form to WSS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chrispragash@hotmail.com - 19 Apr 2005 21:05 GMT
Hello All,

I'm trying to submit an InfoPath Form to WSS using a Web Service. I
have the form template published on a WSS Site. When the user selects
submit, I want to be able to publish all the information to a web
service which inturn does some extra processing and should finally also
add the data to WSS.

Any ideas how I could programmatically submit infopath data to wss?

Thanks in advance,
Chris
Bart - 20 Apr 2005 06:43 GMT
hi chris,

  you can either submit it through the dataconnection to a webservice or
either through custom script(avilable somewhere on the msdn), once you recive
the xml use sharepoint object model to add a file to the form library
(avilable in the wss sdk).

note: when u submit the document to a ebservice infopath adds a parent
element to the Xmldocument

look at the following code i created a webservice function that receives an
xml document and then i manipulate it.

public void HelloWorld(XmlDocument xx)
        {
                try
    try
    {
                kk= new XmlDocument();
                kk=xx;
                oxml=kk.OuterXml;
                XmlNamespaceManager nm=new XmlNamespaceManager(kk.NameTable);
                nm.AddNamespace("my","http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-03-20T13:32:11");
                nm.PushScope();
                string ContractName=kk.SelectSingleNode("//my:ContractName",nm).InnerText;
                string QueryType=kk.SelectSingleNode("//my:QueryName",nm).InnerText;
                string
QueryDescription=kk.SelectSingleNode("//my:QuertDetails",nm).InnerText;           
                string
QuerySubmittedBy=kk.SelectSingleNode("//my:QuerySubmittedBy",nm).InnerText;
                string Phoneno=kk.SelectSingleNode("//my:Phoneno",nm).InnerText;
                string EmailID=kk.SelectSingleNode("//my:EmailID",nm)

after this use the sharepoint object model to add the file to the form
library.

cheers
Bart

> Hello All,
>
[quoted text clipped - 8 lines]
> Thanks in advance,
> Chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.