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);
}
}
Aggregations