pp108 : MoveXMLObject

MoveXMLObject


This Web service operation is used to rename and move an XML Object.

SOAP Request


The request given below is sent to the XML Store to rename an XML Object:

<MoveXMLObject xmlns="http://schemas.cordys.com/1.0/xmlstore">
    <source lastModified="1030698441048">/Cordys/WCP/Menu/MyMenu1</source>
    <destination>/Cordys/WCP/Menu/MyMenu</destination>
</MoveXMLObject>

The request given below is sent to the XML Store to move an XML Object:

<MoveXMLObject xmlns="http://schemas.cordys.com/1.0/xmlstore">
    <source lastModified="1030698441048">/Cordys/WCP/Menu/MyMenu1</source>
    <destination>/Cordys/WCP/MyMenu</destination>
</MoveXMLObject>

The request given below is sent to the XML Store to move an XML Object that is a folder:

<MoveXMLObject xmlns="http://schemas.cordys.com/1.0/xmlstore">
    <source isFolder="true" lastModified="1030698441048">/Cordys/WCP/Menu/MyMenus</source>
    <destination>/Cordys/WCP/MyMenus</destination>
</MoveXMLObject>

Request Parameters

Parameter

Description

source

The key for the XML Object that must be moved or renamed. This must be relative path from the collection folder.

destination

The key for the XML Object that must be renamed or moved. This must be relative path from the collection folder.


SOAP Response


The response received when a request is sent to the XML Store to rename an XML Object:

<MoveXMLObjectResponse xmlns="http://schemas.cordys.com/1.0/xmlstore">
    <tuple isFolder="false" key="/Cordys/WCP/Menu/MyMenu"
        lastModified="1030698441048" level="isv" name="MyMenu"/>
</MoveXMLObjectResponse>


The response received when a request is sent to the XML Store to move an XML Object:

<MoveXMLObjectResponse xmlns="http://schemas.cordys.com/1.0/xmlstore">
    <tuple isFolder="false" key="/Cordys/WCP/MyMenu"
        lastModified="1030698441048" level="isv" name="MyMenu"/>
</MoveXMLObjectResponse>


he request received when a request is sent to the XML Store to move an XML Object that is a folder:

<MoveXMLObjectResponse xmlns="http://schemas.cordys.com/1.0/xmlstore">
    <tuple isFolder="false" key="/Cordys/WCP/MyMenus"
        lastModified="1030698441048" level="isv" name="MyMenu"/>
</MoveXMLObjectResponse>

Note:

  • Set the content of the <source> to the name of the XML Object that must be renamed or moved
  • Set the content of the <destination> to the name of the XML Object to which the XML Object must be renamed or moved
  • lastModifiedattribute of <source> must be mentioned to rename or move an XML Object.
  • For forcibly renaming or moving an XML Object mention unconditional attribute of <source> to be true.
  • User can rename XML Objects based on version by specifying version attribute of <source> to be isv/organization/user.
  • By default, the XML Object is searched in the current organization. If not found, it is then searched in ISV folder. If the user wants a particular version (user/isv/organization) of XML Object to be retrieved, then the version can be specified in the version attribute of <source>.