Gursimrat
11 years agoLeader
Sample code for making external rest call from endpoint
Can anyone provide a code snippet for making an external rest api call. I am making following call and getting error
<#assign response = http.client.request("http://external.rest.usrl/restapi/vc/search/messages?q=test").get() /> <#if response.hasError> ${response.error.message} </#if>
Content type is text/xml
But when I see the endpoint on the view endpointname link, it shows below error "This page contains following errors"
and when I view its source, it shows,
html found in response |