Class JAXBDispatch

    • Method Detail

      • setOutboundHeaders

        public void setOutboundHeaders​(Object... headers)
        Description copied from interface: WSBindingProvider
        Sets the out-bound headers to be added to messages sent from this BindingProvider.

        Each object must be a JAXB-bound object that is understood by the JAXBContext object known by this WSBindingProvider (that is, if this is a Dispatch with JAXB, then JAXBContext given to Service.createDispatch(QName,JAXBContext,Mode) and if this is a typed proxy, then JAXBContext implicitly created by the JAX-WS RI.)

        Specified by:
        setOutboundHeaders in interface WSBindingProvider
        Overrides:
        setOutboundHeaders in class DispatchImpl<Object>
        Parameters:
        headers - Can be null or empty.