try
{
if(this.principal == null)
this.principal = this.getController().getPrincipal();
final DynamicWebservice ws = new DynamicWebservice(principal);
ws.setTargetEndpointAddress(targetEndpointAddress);
ws.setOperationName(operationName);
ws.setReturnType(Boolean.class);
if(this.languageId == null)
ws.addArgument("languageId", this.getController().getLanguageId());
else
ws.addArgument("languageId", this.languageId);
ws.addArgument("contentTypeDefinitionId", this.contentTypeDefinitionId);
ws.addArgument("forcePublication", this.forcePublication);
ws.addArgument("allowHTMLContent", this.allowHTMLContent);
ws.addArgument("allowExternalLinks", this.allowExternalLinks);
ws.addArgument("allowDollarSigns", this.allowDollarSigns);
ws.addArgument("allowAnchorSigns", this.allowAnchorSigns);
ws.addArgument("keepExistingAttributes", this.keepExistingAttributes);
ws.addArgument("keepExistingCategories", this.keepExistingCategories);
ws.addArgument("updateExistingAssets", this.updateExistingAssets);
ws.addArgument("userPropertiesAttributesMap", userPropertiesAttributesMap);
ws.addArgument("digitalAssets", digitalAssets);
ws.callService();
setResultAttribute(ws.getResult());
}
catch(Exception e)
{
e.printStackTrace();
throw new JspTagException(e.getMessage());