Saving infopath form at the web service like infopath does

M

Metin

I use this method to submit whole infopath form
public string submitStudentInfo(XmlElement studentInfo)

When i save studentInfo with this code

XmlDocument doc = new XmlDocument();
doc.Load(new XmlNodeReader(studentInfo));
doc.Save(Server.MapPath("info.xml"));

The result is simple xml file not an infopath file. When i save an xml from
infopath it save this form as a Infopath xml file. It contains information
about xsn file as well. I want to save this form like when infopath save.
How can i do this?
 
M

Metin

Can you explain please? I added a data connection in order to submit my form
to web service. I selected "Enitre document" when i added this connection.

When i saved a form with infopath header contain this information

<?xml version="1.0" encoding="UTF-8"?>
<?mso-infoPathSolution solutionVersion="1.0.0.26"
productVersion="11.0.6357" PIVersion="1.0.0.0"
href="file:///C:\Documents%20and%20Settings\Metin\Desktop\S17b26b.xsn"
name="urn:schemas-microsoft-com:eek:ffice:infopath:S17b26b:-myXSD-2005-03-19T21-30-06"
?>

But when i saved submitted form, inside web service header is different

<dfs:IPDocument
xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution">
<?mso-infoPathSolution productVersion="11.0.6357" PIVersion="1.0.0.0"
href="file:///C:\Documents%20and%20Settings\Metin\Local%20Settings\Application%20Data\Microsoft\InfoPath\Designer\7beca309390e4e21\manifest.xsf"
solutionVersion="1.0.0.27" ?>

It adds <dfs:IPDocument
xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution">
tag to my xml data? Also "name" attribute is missed? What is the problem?

Please help?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top