This project has moved and is read-only. For the latest updates, please go here.


Aug 11, 2015 at 10:59 AM
Good Morning, I want to update sharepoint survey answers using spservice so I used UpdateListItems to update this
        operation: "UpdateListItems",
        async: false,
        webURL: params.sp_content.base_url,
        batchCmd: "Update",
        listName: "{17C2EC72-7229-445D-87A1-38AE11051906}",
        valuepairs: [["What_x0020_is_x0020_your_x0020_n", titletest]],
        completefunc: function (xData, Status) {
            alert("completed-" + Status + xData);
and ID here is UniqueID from the response

but in Status return "parseerror" and responseText return {"IsSucceeded":false,"error_code":1,"error_msg":"The file \u0027/mobile/\u0027 does not exist.","error_details":0,"more_details":null,"expiration":{"is_allowed":false,"duration":0,"method":0,"mode":0,"is_session_expiry":false},"persistence":{"scope":0,"is_encrypted":false},"total_seconds":0,"data":null}"

So i wander what is the problem any help!!
Aug 11, 2015 at 2:31 PM
That doesn't look like a response from the SOAP services, as they return XML. In any case, your URL doesn't look like it could possibly be right:


Aug 16, 2015 at 1:48 PM
Thank you for your respond

I modified the URL to "/mcsharepointproxy/"

And soap request is
            <Batch OnError='Continue'>
                <Method ID='1' Cmd='Update'>
                    <Field Name='What_x0020_is_x0020_your_x0020_n'>hello</Field>
                    <Field Name='ID'>3</Field>

But still the status is "parseerror" and XData.responseText is "The remote server returned an error: (500) Internal Server Error"
So what is the problem?
Aug 21, 2015 at 11:26 PM
Your weURL is not correct.

What happens when you enter the following into the browser address bar:

Do you get an error?

Also: are you using some sort of proxy? The URL above does not look "standard" and if you are trying to proxy API requests through a proxy, then you might be on your own in trying to figure out what is going on.

"webURL" needs to be the URL to the root of the site (or sub-site) where your code is running. Most of the time, leaving this input option undefined is ok, since SPServices will calculate it for you. SPServices then uses that value as a prefix to the respective SOAP service.

-- sent from mobile