Search in sources :

Example 1 with EnvelopeMarshaller

use of org.opensaml.soap.soap11.impl.EnvelopeMarshaller in project ddf by codice.

the class AttributeQueryClient method createSoapMessage.

/**
     * Creates a SOAP message of the AttributeQuery request.
     *
     * @param attributeQuery is added to the SOAP message
     * @return soapElement is the Element of the SOAP message
     */
private Element createSoapMessage(AttributeQuery attributeQuery) throws AttributeQueryException {
    LOGGER.debug("Creating SOAP message from the SAML AttributeQuery.");
    Envelope envelope = SamlProtocol.createSoapMessage(attributeQuery);
    LOGGER.debug("SOAP message from the SAML AttributeQuery created.");
    try {
        return new EnvelopeMarshaller().marshall(envelope);
    } catch (MarshallingException e) {
        throw new AttributeQueryException("Cannot marshall SOAP object to an Element.", e);
    }
}
Also used : EnvelopeMarshaller(org.opensaml.soap.soap11.impl.EnvelopeMarshaller) MarshallingException(org.opensaml.core.xml.io.MarshallingException) Envelope(org.opensaml.soap.soap11.Envelope)

Aggregations

MarshallingException (org.opensaml.core.xml.io.MarshallingException)1 Envelope (org.opensaml.soap.soap11.Envelope)1 EnvelopeMarshaller (org.opensaml.soap.soap11.impl.EnvelopeMarshaller)1