catch (ConfigurationException e)
{
throw new WebServiceException("Encountered configuration exception:", e);
}
WSTrustRequestHandler handler = this.config.getRequestHandler();
String requestType = request.getRequestType().toString();
try
{
if (requestType.equals(WSTrustConstants.ISSUE_REQUEST))
return this.marshallResponse(handler.issue(request, this.context.getUserPrincipal()));
else if (requestType.equals(WSTrustConstants.RENEW_REQUEST))
return this.marshallResponse(handler.renew(request, this.context.getUserPrincipal()));
else if (requestType.equals(WSTrustConstants.CANCEL_REQUEST))
return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal()));
else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST))
return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal()));
else
throw new WSTrustException("Invalid request type: " + requestType);
}
catch (WSTrustException we)
{