Forum Discussion
AdamN
13 years agoKhoros Alumni (Retired)
Hi Qing,
One thing I noticed is that it appears you're trying to assign the response content to a variable before you're verified that the content exists. Perhaps try something like this instead and see if it gets you a bit further:
<#assign response=http.client.request("http://tomtom-uk--tst.tomtom.com/cgi-bin/tomtom_uk.cfg/services/soap?wsdl").get() />
<#if response.hasError>
Error: ${response.error.message}
<#else>
${response.content}
</#if>
ethienneroy
9 years agoContributor
Is it still working in latest version?
I always get :
FreeMarker template error (HTML_DEBUG mode; use RETHROW in production!)
An error has occurred when reading existing sub-variable "client"; see cause exception! The type of the containing value was: extended_hash+string (lithium.coreapi.webui.template.models.HttpTemplateModel wrapped into f.e.b.StringModel)
----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign response = http.client.reques...  [in template "preview" at line 36, column 1]