Get Infopath XML data from SPS library via SPS Web Service

B

Bruce Lee

Hi,

Is it possible to get Infopath XML data from a SPS library via the SPS
Web Services? I know how to get the list of forms but how about the XML
data?


Thanks a lot,
Bruce
 
S

S.Y.M. Wong-A-Ton

I don't think there is an SPS web service to do this, but you could build a
web service yourself. There are two ways you could retrieve the XML data for
an InfoPath form: 1. Use System.Net.WebClient and pass the URL of the form,
or 2. Use the SPS object model to get a file from a library of an SPWeb.
Search the microsoft.public.sharepoint.portalserver newsgroup on
"Programmatically download a document from Sharepoint" for code samples on
how to do this. You download a form in the same way you download a document.
Instead of downloading the form, you would have to read it into a Stream and
then read the XML data from this Stream.
 

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