Connecting to the SharePoint Lists Web Service

P

pmbarnes

I am trying to connect to my SharePoint List using the Data Connection
Wizard in InfoPath SP1. I get to the wizard step where you are supposed
to enter sample values and I am totally stuck.

For s0:listName I enter the friendly name of my list, not a GUID, and
without any quotes. E.g., My List.

For s0:viewName I try to enter the exact view name as specified in
SharePoint, e.g., "All Items". I get the following error:

"Parameter viewName is missing or invalid."

I then open the Lists table in SQL Server to get the list's GUID and
try that. I get the same error. How do I get past this problem? Would
anyone how has succesfully created a secondary data source to this
SharePoint Web service kindly tell me what parameters they used for
this wizard step? (I fear that if I get past viewName I'll get stumped
on others.)

Finally, just so you know the scenario, I want to have a textbox and
button for entering search criteria and have the Web service query
return results based on the entered criteria. From what I've read this
is possible with the GetListItems Web service. If you have any sample
code for how you implemented something like this (I would think it's a
common scenario), please post it as well. Thank you!
 

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