XmlProcessingException {
InputStream is = request.getInputStream();
XMLInputFactory xif = XMLInputFactory.newInstance();
XMLStreamReader reader = xif.createXMLStreamReader(is);
StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(reader);
QName qName = null;
try {
qName = new QName(SAMLP_NS, "AuthzDecisionQuery");
OMElement authzDecisionQuery =
builder.getSOAPEnvelope().getBody().getFirstChildWithName(qName);
checkNotNull(authzDecisionQuery);
qName = new QName(null, "ID");
OMAttribute id = authzDecisionQuery.getAttribute(qName);
checkNotNull(id);
qName = new QName(null, "Resource");