updatelistitems

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
    $().SPServices({
        operation: "UpdateListItems",
        async: false,
        webURL: params.sp_content.base_url,
        batchCmd: "Update",
        listName: "{17C2EC72-7229-445D-87A1-38AE11051906}",
        ID:3,
        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/sharepoint.emeint.net/test.emeint.net/_vti_bin/Lists.asmx\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!!
Coordinator
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:

/mobile/sharepoint.emeint.net/test.emeint.net/_vti_bin/Lists.asmx

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

I modified the URL to "/mcsharepointproxy/sharepoint.emeint.net/test.emeint.net"

And soap request is
<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>{17C2EC72-7229-445D-87A1-38AE11051906}</listName>
        <updates>
            <Batch OnError='Continue'>
                <Method ID='1' Cmd='Update'>
                    <Field Name='What_x0020_is_x0020_your_x0020_n'>hello</Field>
                    <Field Name='ID'>3</Field>
                </Method>
            </Batch>
        </updates>
    </UpdateListItems>
</soap:Body>
</soap:Envelope>"

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.

Paul
-- sent from mobile