Java SOAP Message isOutgoingMessage(SOAPMessageContext smc)

Here you can find the source of isOutgoingMessage(SOAPMessageContext smc)

Description

Returns true if the SOAPMessageContext is part of the request

License

Open Source License

Parameter

Parameter Description
smc a parameter

Declaration

public static boolean isOutgoingMessage(SOAPMessageContext smc) 

Method Source Code

//package com.java2s;

import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPMessageContext;

public class Main {
    /**/*from   w  w  w .ja va  2s. c  o m*/
     * Returns true if the {@link SOAPMessageContext} is part of the request
     *
     * @param smc
     * @return
     */
    public static boolean isOutgoingMessage(SOAPMessageContext smc) {
        Boolean outboundProperty = (Boolean) smc.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
        return outboundProperty.booleanValue();
    }
}

Related

  1. hasAttachments(SOAPMessage message)
  2. invokeOneWay(Dispatch dispatch, String request, String... args)
  3. isExceptionObject(Class o)
  4. isFaultMessage(final SOAPMessage msg)
  5. isFaultResponse(SOAPMessage message)
  6. isSOAP12(SOAPMessage soapMessage)
  7. isSOAP12(SOAPMessage soapMessage)
  8. isSOAPFault(SOAPMessage messageSOAP)
  9. printMessage(SOAPMessageContext smc)