/** * Returns true if the FaultTo address matches one of the supported * anonymous urls. If the FaultTo is not set, the ReplyTo is checked per the * spec. * * According to the WS-Addressing Metadata spec the none URI must not be rejected. * * @param messageContext * @see #isSyncReplyAllowed(org.apache.axis2.context.MessageContext) */ public static boolean isSyncFaultAllowed(MessageContext messageContext) { EndpointReference faultTo = messageContext.getFaultTo(); if (faultTo == null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " isSyncFaultAllowed: FaultTo is null. Returning isSyncReplyAllowed"); } return isSyncReplyAllowed(messageContext); } else { return faultTo.hasAnonymousAddress() || faultTo.hasNoneAddress(); } }
/** * Returns true if the FaultTo address matches one of the supported * anonymous urls. If the FaultTo is not set, the ReplyTo is checked per the * spec. * * According to the WS-Addressing Metadata spec the none URI must not be rejected. * * @param messageContext * @see #isSyncReplyAllowed(org.apache.axis2.context.MessageContext) */ public static boolean isSyncFaultAllowed(MessageContext messageContext) { EndpointReference faultTo = messageContext.getFaultTo(); if (faultTo == null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " isSyncFaultAllowed: FaultTo is null. Returning isSyncReplyAllowed"); } return isSyncReplyAllowed(messageContext); } else { return faultTo.hasAnonymousAddress() || faultTo.hasNoneAddress(); } }
if (!AddressingHelper.isSyncReplyAllowed(msgContext)) { EndpointReference anonEPR = new EndpointReference(AddressingConstants.Final.WSA_ANONYMOUS_URL);