Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2007

Tip: Looking for answers? Try searching our database.

What <Field Name> does webservice accept?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raydio@gmail.com - 01 Aug 2007 09:51 GMT
Hi.

This is probably a daft question, but for the life of me I am unable
to find out what fields a webservice accepts.

The service is wss Lists.UpdateListItems

How do I find out what <Field Name=""> it or any other service
accepts?

Example xml sent:

<Method ID="1" Cmd="New">
<Field Name="Title">D-day for home info packs</Field>
<Field Name="PublishedDate">2007-08-01 17:51:29</Field>
</Method>

Thanks.
John Saunders [MVP] - 01 Aug 2007 15:38 GMT
> Hi.
>
[quoted text clipped - 12 lines]
> <Field Name="PublishedDate">2007-08-01 17:51:29</Field>
> </Method>

Do you have access to the WSDL for the service? What is the type of the Name
attribute? Is it restricted using enumerations? If so, that's your answer.

Most likely it is not restricted that way, so you'll have to ask the people
who wrote the service. That is to say, look in the documentation.

A method like this is meant to be generic and extensible without necessarily
needing to change the code of the client. Perhaps there is a
Lists.GetMetaData call or something like that.
Signature

John Saunders [MVP]

Ray Proffitt - 03 Aug 2007 00:22 GMT
The doco for WSS v3 isn't really much use...

use the GetList(slist) method to bring back the whole schema, then
loop through the fields.... something like this:

XmlNode ndList = oLists.GetList("yourlist");
       // Iterate through each field
       foreach (XmlNode ndField in ndList.FirstChild.ChildNodes)
       {
           foreach(XmlAttribute a in ndField.Attributes)
           {
               lListSchema.Text +=
(string)ndField.Attributes[a.Name].Value;
           }
         }

On Aug 1, 6:51 pm, ray...@gmail.com wrote:
> Hi.
>
[quoted text clipped - 14 lines]
>
> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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.