DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 01 Aug 2007 01:51:49 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    unknown
          2    John Saunders [MVP] john.saunders at trizetto.com
          3    Ray Proffitt


What <Field Name> does webservice accept?   
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.
Date:Wed, 01 Aug 2007 01:51:49 -0700   Author:  

Re: What <Field Name> does webservice accept?   
wrote in message 
news:1185958309.631996.245370@e9g2000prf.googlegroups.com...

> 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>


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.
-- 
John Saunders [MVP]
Date:Wed, 1 Aug 2007 10:38:54 -0400   Author:  

Re: What <Field Name> does webservice accept?   
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.
>
> 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.
Date:Thu, 02 Aug 2007 23:22:33 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us