AMS Web Service Test JSP

This allows you to run requests against the various legacy services and post multi-part data to the upload servlet.  The URL is ../ams/ws/wsTest.jsp 

Post to upload servlet:

The screenshot is of the Web Services Test page.  There is no UI element to update a Collection attribute currently, so it has to be done with a web service call which this page allows you to do. 


The XML for replacing a part isn't straightforward, but here's what it would look like:

<assets>

  <asset ID="parentAsset">

    <query-condition>{ASSET_ID}</query-condition>

    <view name="{ASSET_VIEW_CLASS}">

      <part name="{PART_NAME}" target="partAsset"/>

    </view>

  </asset>

  <asset ID="partAsset">

    <asset-class>{ASSET_CLASS}</asset-class>

    <storage storage-class="Datastore" content="{REQUEST_PART_NAME}"/>

  </asset>

</assets>

The XML will include one <asset> entry for the user metadata asset and one <asset> for every part you want to add or replace.

You'll replace the highlighted fields with the appropriate values for the asset and part you want to modify. Most of these will match the values in the XML returned by the asset service.


  • ASSET_ID: the id of the user metadata asset
  • ASSET_VIEW_CLASS: the asset class of the user metadata asset's view. This will be "Video" for the CC text replacement.
  • PART_NAME: the name of the part to add or replace. I believe this will be "CCText" for CC text replacement.
  • ASSET_CLASS: the asset class of the part. Probably either "Document" or "Binary", but check the asset XML to see what's currently used.
  • REQUEST_PART_NAME: this matches the name of the request part in the multi-part request that contains the file content. See below for a description of how this is used.

On wsTest.jsp, select the "Upload POST" radio button and enter the XML into the "Input XML" text area. Below the text area is a "File Inputs" widget. Click "Add" to add a form field. Edit the text box so that the value matches the value of the content attribute in the storage XML element (see REQUEST_PART_NAME above). Use the file selector to select the file you wish to upload.

When ready, click "Submit Request". The XML response will be displayed in the "Response" iframe at the bottom of the page. 

This is a pretty brief explanation, so let me know if you have any questions or would like me to explain further. The screenshot is for replacing a thumbnail, but it should essentially be the same for CCText.