Drupal 7.13 and Services 3.5 XML Payload schema to Update Node? I have finally got Services up and running and setup an endpoint to nodes but can't work out how to update custom fields from a POST or PUT.

Been trawling through the docs, examples, and tutorials but none seem to offer a simple explanation of the XML payload schema to update custom fields of nodes (Using REST).

Below is an example of what I'm putting into by test client (Using REST console for Chrome plugin)

URL: http://example.com/task/node/65
Encoding: application/x-www-form-urlencoded
METHOD: PUT

Payload:-

&lt;title&gt;New Title&lt;/title&gt;
&lt;body&gt;New Body Content&lt;/body&gt;


However this doesn't update anything, I just get the following response:-

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;result&gt;
    &lt;nid&gt;65&lt;/nid&gt;
    &lt;uri&gt;http://example.com/task/node/65&lt;/uri&gt;
&lt;/result&gt;


It seems to create a revision and logs the update, but no fields are updated.

Can anyone advise the schema I need to follow for the payload? Thanks for any help or pointers!

EDIT: Thanks to Clive for a key pointer: Sticking ".xml" on the end of the URL seemed to make it update the body field, and then changing the content-type header to application/xml seemed to help as well.

So the following REST client config is now working:-

URL: http://example.com/service_endpoint/node/nid.xml

REQUEST METHOD: PUT

CONTENT-TYPE: application/xml

RAW PAYLOAD:-

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;data&gt;
    &lt;name&gt;user&lt;/name&gt;
    &lt;title&gt;Change this owner!&lt;/title&gt;
    &lt;body&gt;
        &lt;und is_array="true"&gt;
               &lt;item&gt;
                &lt;value&gt;Another owner test&lt;/value&gt;
            &lt;/item&gt;
        &lt;/und&gt;
    &lt;/body&gt;
&lt;/data&gt;


Screenshot to help anyone else using the Chrome REST Console plugin:-



NOTE: I removed all security for the service and content type to make testing it easier but wouldn't recommend this on a public server!
See updated EDIT above.

RAW PAYLOAD:-

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;data&gt;
    &lt;name&gt;user&lt;/name&gt;
    &lt;title&gt;Change this owner!&lt;/title&gt;
    &lt;body&gt;
        &lt;und is_array="true"&gt;
               &lt;item&gt;
                &lt;value&gt;Another owner test&lt;/value&gt;
            &lt;/item&gt;
        &lt;/und&gt;
    &lt;/body&gt;
&lt;/data&gt;