Integrating the Tag Cloud via Webservice / SOAP

End of Life

Please note: the SOAP interface will no longer be updated or upgraded. We recommend the REST-API for new customers. If you have been using the SOAP interface so far, you can go on using it. We do however recommend changing your integration interface to improve Performance.

The WSDL for the Tag Cloud function can be found at the following URL:

$stringEscapeUtils.escapeHtml($body)

The getTagCloudEntries method present here must be provided with the name of the channel and the maximum number of entries. The results returned contain an alphabetically sorted term count map.

In order to subsequently calculate the required font sizes, you must calculate the weighting for the individual terms from the returned data (see the description of the weight attribute). For the weighting, you first need to determine the overall maximum (maxOccurs) and minimum (minOccurs) number of all entries. The respective weighting may be determined with the following formula, where occur is the number for the current entry:

weight = (Math.log(occur) - Math.log(minOccurs)) / (Math.log(maxOccurs) - Math.log(minOccurs))