In case anyone beside me was wondering how to access header elements of
SOAP responses, here's a way to do it.
private static String getResponseHeaderElement(
WSIFOperation operation,
QName elementName )
throws WSIFException {
WSIFMessage context = operation.getContext();
List<Element> headers = (List<Element>)context.getObjectPart(
WSIFConstants.CONTEXT_RESPONSE_SOAP_HEADERS);
for (Element elem : headers) {
QName headerName = new QName(elem.getNamespaceURI(),
elem.getLocalName());
if (elementName.equals(headerName)) {
return elem.getTextContent();
}
}
return "";
}
Michael
--
Michael Schuerig Life is just as deadly
mailto:[EMAIL PROTECTED] As it looks
http://www.schuerig.de/michael/ --Richard Thompson, Sibella