List of usage examples for javax.xml.ws ProtocolException ProtocolException
public ProtocolException(String message, Throwable cause)
From source file:be.fedict.hsm.ws.impl.JAASSOAPHandler.java
@Override public boolean handleMessage(SOAPMessageContext context) { Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY); if (false == outboundProperty) { try {//w w w.jav a 2 s . c om login(context); } catch (Exception e) { this.securityAuditGeneratorBean.webServiceAuthenticationError(); throw new ProtocolException("JAAS login error: " + e.getMessage(), e); } } else { try { logout(context); } catch (LoginException e) { this.securityAuditGeneratorBean.webServiceAuthenticationError(); throw new ProtocolException("JAAS logout error: " + e.getMessage(), e); } } return true; }
From source file:be.fedict.hsm.ws.impl.JAASSOAPHandler.java
@Override public boolean handleFault(SOAPMessageContext context) { Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY); if (outboundProperty) { try {/*from ww w . j av a 2 s. c o m*/ logout(context); } catch (LoginException e) { this.securityAuditGeneratorBean.webServiceAuthenticationError(); throw new ProtocolException("JAAS logout error: " + e.getMessage(), e); } } return true; }
From source file:org.apache.axis2.jaxws.ExceptionFactory.java
/** * Create a ProtocolException/*w ww . j a v a 2 s . c o m*/ * * @param message * @param t Throwable * @return ProtocolException */ private static ProtocolException createProtocolException(String message, Throwable t) { Throwable rootCause = null; if (t != null) { rootCause = getRootCause(t); } rootCause = rootCause == null ? t : rootCause; ProtocolException e = null; if (message != null) { e = new ProtocolException(message, rootCause); } else { e = new ProtocolException(rootCause); } if (log.isDebugEnabled()) { log.debug("create Exception:", e); } return e; }