Help With Custom Web Service
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Help With Custom Web Service

 
Post new topic   Reply to topic    Windows Server Forum Index -> Windows Services
Author Message
A R James
Guest





Posted: Mon Jan 10, 2005 6:54 am    Post subject: Help With Custom Web Service Reply with quote

I am attempting to write a custom web service to return a list of
documents from all document libraries in a WSS site that have been
modified within n days.

I receive an error when I try to use the following query on an SPList
object to return appropriate items:

<Where><Geq><FieldRef Name=\"Modified\" /><Value
Type=\"DateTime\">(Calculated Date)</Value></Geq></Where>

The error message I'm getting is:
No such field name - No field was found with that name. Check the
name, and try again.

I double checked the list's schema to ensure I'm using the right field
name:
<Field ColName="tp_Modified" Hidden="TRUE" ReadOnly="TRUE"
Type="DateTime" Name="Modified" DisplayName="Last Modified"
StorageTZ="TRUE" FromBaseType="TRUE" />

Any advice? And alternatively, is there perhaps something already
written that will allow me to perform this function?

Thanks in advance,
Andrea James
Back to top
Mike Walsh
Guest





Posted: Mon Jan 10, 2005 10:54 am    Post subject: Re: Help With Custom Web Service Reply with quote

Please post 'programming' questions like this to the sub newsgroup that has
been set up specially for them and where you will find the WSS programming
experts.

microsoft.public.sharepoint.windowsservices.development

Mike Walsh, Helsinki, Finland
WSS FAQ at http://wss.collutions.com
Please post questions to the newsgroup only.

"A R James" <roceal@jngm.net> wrote in message
news:37647a8f.0501091654.579e816c@posting.google.com...
Quote:
I am attempting to write a custom web service to return a list of
documents from all document libraries in a WSS site that have been
modified within n days.

I receive an error when I try to use the following query on an SPList
object to return appropriate items:

Where><Geq><FieldRef Name=\"Modified\" /><Value
Type=\"DateTime\">(Calculated Date)</Value></Geq></Where

The error message I'm getting is:
No such field name - No field was found with that name. Check the
name, and try again.

I double checked the list's schema to ensure I'm using the right field
name:
Field ColName="tp_Modified" Hidden="TRUE" ReadOnly="TRUE"
Type="DateTime" Name="Modified" DisplayName="Last Modified"
StorageTZ="TRUE" FromBaseType="TRUE" /

Any advice? And alternatively, is there perhaps something already
written that will allow me to perform this function?

Thanks in advance,
Andrea James
Back to top
A. R. James
Guest





Posted: Mon Jan 10, 2005 12:00 pm    Post subject: Re: Help With Custom Web Service Reply with quote

My apologies. I was not aware of the correct group and for some reason it
wasn't available via Google. I have re-posted this question in the
appropriate place.

- Andrea James

"Mike Walsh" <englantilainen@hotmail.com> wrote in message
news:OLLo3Bt9EHA.960@TK2MSFTNGP11.phx.gbl...
Quote:
Please post 'programming' questions like this to the sub newsgroup that
has
been set up specially for them and where you will find the WSS programming
experts.

microsoft.public.sharepoint.windowsservices.development

Mike Walsh, Helsinki, Finland
WSS FAQ at http://wss.collutions.com
Please post questions to the newsgroup only.

"A R James" <roceal@jngm.net> wrote in message
news:37647a8f.0501091654.579e816c@posting.google.com...
I am attempting to write a custom web service to return a list of
documents from all document libraries in a WSS site that have been
modified within n days.

I receive an error when I try to use the following query on an SPList
object to return appropriate items:

Where><Geq><FieldRef Name=\"Modified\" /><Value
Type=\"DateTime\">(Calculated Date)</Value></Geq></Where

The error message I'm getting is:
No such field name - No field was found with that name. Check the
name, and try again.

I double checked the list's schema to ensure I'm using the right field
name:
Field ColName="tp_Modified" Hidden="TRUE" ReadOnly="TRUE"
Type="DateTime" Name="Modified" DisplayName="Last Modified"
StorageTZ="TRUE" FromBaseType="TRUE" /

Any advice? And alternatively, is there perhaps something already
written that will allow me to perform this function?

Thanks in advance,
Andrea James

Back to top
Mike Walsh
Guest





Posted: Mon Jan 10, 2005 12:29 pm    Post subject: Re: Help With Custom Web Service Reply with quote

No need to apologise.

It's a new group (11.11) and it isn't listed in most of the places it should
be. So unless you Refresh your list of newsgroups on the off-chance there's
no way you could be aware of it.

Thanks for posting there though. You should get a (useful) reply faster as
well.

Mike Walsh, Helsinki, Finland

"A. R. James" <andrea@oriel.com.au> wrote in message
news:OoBM6mt9EHA.208@TK2MSFTNGP12.phx.gbl...
Quote:
My apologies. I was not aware of the correct group and for some reason it
wasn't available via Google. I have re-posted this question in the
appropriate place.

- Andrea James

"Mike Walsh" <englantilainen@hotmail.com> wrote in message
news:OLLo3Bt9EHA.960@TK2MSFTNGP11.phx.gbl...
Please post 'programming' questions like this to the sub newsgroup that
has
been set up specially for them and where you will find the WSS
programming
experts.

microsoft.public.sharepoint.windowsservices.development

Mike Walsh, Helsinki, Finland
WSS FAQ at http://wss.collutions.com
Please post questions to the newsgroup only.

"A R James" <roceal@jngm.net> wrote in message
news:37647a8f.0501091654.579e816c@posting.google.com...
I am attempting to write a custom web service to return a list of
documents from all document libraries in a WSS site that have been
modified within n days.

I receive an error when I try to use the following query on an SPList
object to return appropriate items:

Where><Geq><FieldRef Name=\"Modified\" /><Value
Type=\"DateTime\">(Calculated Date)</Value></Geq></Where

The error message I'm getting is:
No such field name - No field was found with that name. Check the
name, and try again.

I double checked the list's schema to ensure I'm using the right field
name:
Field ColName="tp_Modified" Hidden="TRUE" ReadOnly="TRUE"
Type="DateTime" Name="Modified" DisplayName="Last Modified"
StorageTZ="TRUE" FromBaseType="TRUE" /

Any advice? And alternatively, is there perhaps something already
written that will allow me to perform this function?

Thanks in advance,
Andrea James



Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Windows Services All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB