WoodWing Help Center

Elvis 4 SOAP API - search relations

Elvis 4 SOAP API - search relations

Warning. This operation is deprecated and might be removed from a future version of Elvis. Searching relations can now be performed with the normal search operation.

Below is an example request and response.

Search relations request body

<e:searchRelationsRequest xmlns:e="http://www.elvisdam.com/xmlns/elvis/webservice/1.0">
    <e:assetId>9KPmoarp4Xl96TA9sYRR2m</e:assetId>
    <!--
        First result to return, default value is 0 (first).
    -->
    <e:firstResult>0</e:firstResult>
    <!--
        Max results to return, set to 0 to return all results (take care, 
        this may take some time and slow down the server if your search 
        finds millions of results).
    -->
    <e:maxResultHits>100</e:maxResultHits>
    <!-- 
        Fields to be returned, do not specify to return all available metadata.
    -->
    <e:metadataToReturn>
        <e:field>created</e:field>
        <e:field>fileSize</e:field>
        <e:field>folderPath</e:field>
        <e:field>tags</e:field>
    </e:metadataToReturn>
</e:searchRelationsRequest>

Search relations response body

<?xml version="1.0" encoding="UTF-8"?>
<e:searchRelationsResponse xmlns:e="http://www.elvisdam.com/xmlns/elvis/webservice/1.0"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    totalRelations="1">
    <e:relation>
        <e:relationId>Bpc8zmP0a3NBux54dE62RK</e:relationId>
        <e:relationType>contained-by</e:relationType>
        <e:hit>
            <e:id>DSS8uFzL4ly8RsyVmprqxb</e:id>
            <e:name>Trailers</e:name>
            <e:filename>Trailers.collection</e:filename>
            <e:assetPath>/Users/admin/Collections/
                         2008-10/Trailers.collection</e:assetPath>
            <e:assetDomain>container</e:assetDomain>
            <e:assetType>collection</e:assetType>
            <e:thumbnailUrl>http://...</e:thumbnailUrl>
            <e:previewUrl>http://...</e:previewUrl>
            <e:originalUrl>http://...</e:originalUrl>
            <e:originalUncPath>\\server\share\Users\admin\
                         Collections\2008-10\Trailers.collection</e:originalUncPath>
            <e:metadata>
                <e:field name="extension">
                    <e:value>collection</e:value>
                </e:field>
                <e:field name="folderPath">
                    <e:value>/Users/admin/Collections/2008-10</e:value>
                </e:field>
            </e:metadata>
        </e:hit>
    </e:relation>
</e:searchRelationsResponse>
Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.