ACSCE-5X practice question 11 of 15
A custom web script is called via the URL /example/test/helloworld.html, relative to the RESTful API base URL. What value must be declared in the script’s descriptor to configure this?
Full set: 87 questionsIn the Alfresco Web Script Framework, the element within the descriptor file (.desc.xml) defines the URI path that the web script binds to. The format of the response (e.g., HTML, JSON) is specified by a file extension in the request URL (like .html) or an Accept header. The framework automatically parses this format specifier to select the appropriate response template (e.g., .get.html.ftl). Therefore, the format specifier itself should not be included in the declaration. For the request URL /example/test/helloworld.html, the correct path to declare is /example/test/helloworld.
A. helloworld: This is an incomplete path. It would only match a URL like /helloworld.html, not the nested path provided in the question.
C. /example/test/helloworld.html: This is incorrect because the format specifier (.html) must not be included in the element of the descriptor file.
D. /example: This is an incomplete path. It would match a URL like /example.html but not the full path /example/test/helloworld.html.
1. Alfresco Content Services 5.2 Documentation, "Web script description file": This official documentation describes the components of the web script descriptor file. It explains that the element is a "URI template that the Web Script is bound to." The examples provided, such as /folder/{folderpath}, consistently show URL paths without format extensions.
Source: Alfresco Content Services 5.2 Documentation, "Developing > API > Web Scripts > Web script description file".
2. Alfresco Content Services 5.2 Documentation, "How a URI is dispatched to a Web Script": This section details how the framework matches an incoming URI to a web script. It explicitly states, "The Web Script Framework first finds the best Web Script to handle the request by matching the request URI against all registered Web Script URIs." It later explains that the format is determined from the request to select the correct response template, separating the URI path matching from format selection.
Source: Alfresco Content Services 5.2 Documentation, "Developing > API > Web Scripts > Web Script Framework".
Keep practicing
Take the free ACSCE-5X practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ACSCE-5X practice questions
- Question 1Alfresco Content Services defines some root objects to use with Web Scripts FreeMarker te…
- Question 2You want to increase the maximum number of results returned by searches in Share from the…
- Question 3What does it mean when it is said in Solr indexing that the index is “eventually consiste…
- Question 4What are the minimum steps needed to add a custom search form in Alfresco Share?
- Question 5How should s be identified and recognized?
- Question 6What are the variable’s scopes available for Activiti workflows?
