I'm very new to Sharepoint, I have an aspx page on a Sharepoint site that shows a list of fields, including First Name, Last Name, etc. I'm have a console app, in Visual Studio, I'm using for testing communication and data transfer capability between between one web service and another; namely Sharepoint and another web service. My goal is to populate the various fields in the list on my Sharepoint site with data from the other web service. I'm using a web reference to the Lists Web Service on my Sharepoint server to try and gain access to fields in this particular list on the Sharepoint site. I have the following code:
''Name of my web reference to Lists Web Service is "sharepoint"
Dim sharepointList As New sharepoint.Lists()
sharepointList.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim testLists As XmlNode = sharepointList.GetListCollection
Dim xmlText As String = testLists.InnerXml
Dim xmlElement As XmlAttributeCollection = testLists.Attributes
I've been trying to find where this particular list is. I'll admit I'm not sure where I'm supposed to be looking, as the above code demonstrates. I've been using the debugger to analyze each of the above variables to try and find where in the XML this particular list is defined. Any help or insight is appreciated.
Here is a snapshot of the Sharepoint page containing the list I'm trying to search for:
UPDATE:
I decided to use the GetList() function and passed the name "New Hires" to it. It ended up grabbing the list above. Now I'm just trying to see if I can get access to just the fields pictured above, analyzing the xml it seems like those are just display names, the actual fieldID is some alpha numeric string, i.e. Display Name = "Business Phone" has the Field ID = "{fd630629-c165-4513-b43c-fdb16b86a14d}". I'm wondering if there's a way to search fields by Display Name.