AEM 6540 - Assets Dynamic Media Standalone Script to list Assets by Folder in Scene7 | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Adobe Employee
Adobe Employee
June 10, 2020

AEM 6540 - Assets Dynamic Media Standalone Script to list Assets by Folder in Scene7 | AEM Community Blog Seeding

  • June 10, 2020
  • 0 replies
  • 1629 views

BlogImage.jpg

AEM 6540 - Assets Dynamic Media Standalone Script to list Assets by Folder in Scene7 by Sreekanth Choudry Nalabotu

Abstract

Goal

You have a AEM Dynamic Media instance and the requirement is to browse and get list of assets grouped by folder in associated Scene7 account. The following standalone java program explores using the Scene7 wsdl IpsAPI to connect and browse, list assets by folder....

For searching check this post

Github

Solution

1) Login to AEM CrxDe - http://localhost:4502/crx/de and get the Scene7 Company handle used in Dynamic Media configuration eg. /conf/global/settings/cloudconfigs/dmscene7/jcr:content

2) Open following AEM config page and from the list of scene7 endpoints get the one for your region (available in AEM DM configuration, step 1 above eg. northamerica-enterprise)

http://localhost:4502/libs/settings/dam/scene7/endpoints.html

3) Get the Scene7 IpsAPI wsdl SDK from AEM installation launchpad, by looking for the bundle number folder, copy to your program classpath folder and rename bundle.jar to versioned jar name eg. cq-scene7-wsdl-1.3.2.jar

4) In your standalone program eg. BrowseScene7AssetsByFolder classpath add the following jars (available in Adobe Repo - https://repo.adobe.com/nexus/content/groups/public/)

C:\dev\projects\templibs\scene7\cq-scene7-wsdl-1.3.2.jar
C:\Users\\.m2\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar
C:\Users\\.m2\repository\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar
C:\Users\\.m2\repository\commons-logging\commons-logging-api\1.1\commons-logging-api-1.1.jar
C:\Users\\.m2\repository\commons-io\commons-io\2.5\commons-io-2.5.jar

5) Add the following logic in standalone program BrowseScene7AssetsByFolder to connect to Scene7, get and parse response....

Read Full Blog

AEM 6540 - Assets Dynamic Media Standalone Script to list Assets by Folder in Scene7

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.