UpdateMD web services
- Article Type: General
- Product: Rosetta
- Product Version: 3.2.2
Desired Outcome Goal:
How to use UpdateMD Web Services, to update dc:rights for example
Procedure:
1. For dc use
type=descriptive
subtype=dc.
2. UpdateMD requires a metadata object , not a string.
'content' value needs to be wrapped in CDATA, e.g.:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dps="http://dps.exlibris.com/">
<soapenv:Header/>
<soapenv:Body>
<dps:updateMD>
<!--Optional:-->
<pdsHandle>274201410513102616312000337801</pdsHandle>
<!--Optional:-->
<PID>IE1000</PID>
<!--Zero or more repetitions:-->
<metadata>
<!--Optional:-->
<content><![CDATA[<dc:record xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mods="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-0.xsd">
<dc:creator>Selenium12345</dc:creator>
<dc:identifier/>
<dc:identifier>ISBN 1-56389-668-0</dc:identifier>
<dc:identifier/>
<dc:date>2010</dc:date>
<dc:publisher/>
<dc:description/>
<dcterms:alternative>Selenium Title</dcterms:alternative>
<dc:title>door123</dc:title>
</dc:record>]]></content>
<!--Optional:-->
<mid>1921</mid>
<!--Optional:-->
<subType>dc</subType>
<!--Optional:-->
<type>descriptive</type>
</metadata>
</dps:updateMD>
</soapenv:Body>
</soapenv:Envelope>
Additional Information
The WS will overwrite the metadata with the value in content, so it is needed to include the existing metadata and add dc:rights to it.
Category: Web Services
Subject: UpdateMD
- Article last edited: 5/4/2014