1
votes

I am trying to use the built in web service in Sitecore 6.5 (.../sitecore/shell/webservice/service.asmx)

There is PDF that describes the commands, but it does not specify the format for inserting/updating items. It claims one can simply use the format when doing a GetXml request, but I have found that not to be true from my testing.

I have tried a number of variations, both trying with an or just single fields as suggested by this blog, with no luck and unfortunately the webservice does not complain about the input, it always responds "OK" with no effect.

The full request (as what I am looking at now)

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>
    <Save xmlns="http://sitecore.net/visual/">
              <xml>
     &lt;sitecore&gt;
        &lt;field   itemid=&quot;{7CCE4419-E8BD-45F4-9B9C-625E220C59A1}&quot;
                fieldid=&quot;{3F4B20E9-36E6-4D45-A423-C86567373F82}&quot; 
                language=&quot;en&quot;
                version=&quot;1&quot;&gt;
            &lt;content&gt;A title from service&lt;/content&gt;
        &lt;/field&gt;
     &lt;/sitecore&gt;
    </xml>
        <databaseName>master</databaseName>
        <credentials><!-- removed --></credentials>
    </Save>
</soapenv:Body>

If anyone knows what the format is that would be great.

2

2 Answers

3
votes

If you are using Sitecore 6.5 then you can use the Item Web API, this should give you access to everything you need via JSON REST services.

There was a great response from Kevin Obee with further links, but also have a read of the following:

1
votes

I normally write my own webservice if I want to do some modifications to Sitecore items and found it a much more flexible way because I mostly want at least just a bit more functionality then the standard webservice has to offer. But be aware that you cannot serialize the Sitecore.Data.Items.Item class so sending an Item object through Soap is not going to work.