Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
UpdateListItems web service does not update field
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric  
View profile  
 More options Jul 3, 6:27 am
Newsgroups: microsoft.public.sharepoint.portalserver
From: Eric <eri...@nospam.nospam>
Date: Thu, 2 Jul 2009 13:27:01 -0700
Local: Fri, Jul 3 2009 6:27 am
Subject: UpdateListItems web service does not update field

This question was posted by a colleague but it hasn't received a reply.  I'm
guessing his TechNet benefits was not configured correctly so I'm reposting
it for him.

---

I'm using _vti_bin/lists.asmx?op=UpdateListItems web service to update a task
list field passing the required infromation but the update does not take
place and the web service does not return an error. The ID of the item exists
and is the correct item to update. The account used by the web service to
make the update has Contirbute permissions on the list. Any ideas what has
gone wrong?

Here is a sample of the xml used.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <UpdateListItems
xmlns="http://schemas.microsoft.com/sharepoint/soap/">
            <listName>Tasks</listName>
                <updates>
                    <Batch OnError="Continue" ListVersion="1">
                    <Method ID="1" Cmd="Update">
                        <Field Name="ID">199</Field>
                        <Field Name="AssignedTo">Joe</Field>
                    </Method>
                    </Batch>
                </updates>
        </UpdateListItems>
    </soap:Body>
</soap:Envelope>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Lambert Qin [MSFT]"  
View profile  
 More options Jul 6, 3:09 pm
Newsgroups: microsoft.public.sharepoint.portalserver
From: v-la...@online.microsoft.com ("Lambert Qin [MSFT]")
Date: Mon, 06 Jul 2009 05:09:08 GMT
Local: Mon, Jul 6 2009 3:09 pm
Subject: RE: UpdateListItems web service does not update field

Hi Eric,

for your information, I think there is nothing wrong with the
configurations.
The permission is correct, and the soap message looks good.

If you were using JQuery, you need to add the additional request header
"SOAPAction" shown in with following code sample:

$.ajax({
    url: Web Service URL,
    beforeSend: function(xhr) {
        xhr.setRequestHeader("SOAPAction",
        "http://schemas.microsoft.com/sharepoint/soap/UpdateListItems");
    },
    type: "POST",
    dataType: "xml",
    data: soapEnvelope,
    complete: processResult,
    contentType: "text/xml; charset=utf-8"

});

If you were using VB.Net or C#, you could refer to How to: Update List
Items (http://msdn.microsoft.com/en-us/library/ms440289.aspx)

As web service issues requires extensive programming skills, it is
suggested to get further help in
microsoft.public.sharepoint.portalserver.development newsgroup.

Thanks for your understanding.

Sincerely,
Lambert Qin
Microsoft Online Support

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google