private MessagePartInfo getFaultMessagePart(QName qname, OperationInfo op) { for (FaultInfo faultInfo : op.getFaults()) { for (MessagePartInfo mpi : faultInfo.getMessageParts()) { String ns = null; if (mpi.isElement()) { ns = mpi.getElementQName().getNamespaceURI(); } else { ns = mpi.getTypeQName().getNamespaceURI(); } if (qname.getLocalPart().equals(mpi.getConcreteName().getLocalPart()) && qname.getNamespaceURI().equals(ns)) { return mpi; } } } return null; }
protected MessagePartInfo getFaultMessagePartInfo(OperationInfo opInfo, QName faultName) { Iterator<FaultInfo> faults = opInfo.getFaults().iterator(); while (faults.hasNext()) { FaultInfo fault = faults.next(); MessagePartInfo partInfo = fault.getMessageParts().get(0); if (partInfo.isElement() && partInfo.getElementQName().getLocalPart().equals(faultName.getLocalPart())) { return partInfo; } else if (partInfo.getTypeQName().getLocalPart().equals(faultName.getLocalPart())) { return partInfo; } } return null; }
private void createFaultDetail(Document faultData, FaultInfo faultInfo, Fault faultEx) { MessagePartInfo partInfo = faultInfo.getMessageParts().get(0); QName partInfoName = partInfo.getElementQName(); Document faultDoc = DOMUtils.getEmptyDocument(); Element faultElement = faultDoc.createElement("detail"); Element partElement = faultDoc.createElementNS(partInfoName.getNamespaceURI(), partInfoName.getLocalPart()); Element faultDataElement = (Element) faultData.getFirstChild(); Node node = faultDataElement.getFirstChild(); while (node != null) { Node importedFaultData = faultDoc.importNode(node, true); partElement.appendChild(importedFaultData); node = node.getNextSibling(); } faultElement.appendChild(partElement); faultEx.setDetail(faultElement); }
protected FaultInfo getFaultInfo(OperationInfo opInfo, QName faultName) { Iterator<FaultInfo> faults = opInfo.getFaults().iterator(); while (faults.hasNext()) { FaultInfo fault = faults.next(); MessagePartInfo partInfo = fault.getMessageParts().get(0); if (partInfo.isElement() && partInfo.getElementQName().getLocalPart().equals(faultName.getLocalPart())) { return fault; } else if (partInfo.getTypeQName().getLocalPart().equals(faultName.getLocalPart())) { return fault; } } return null; }
private MessagePartInfo getFaultMessagePart(QName qname, OperationInfo op) { for (FaultInfo faultInfo : op.getFaults()) { for (MessagePartInfo mpi : faultInfo.getMessageParts()) { String ns = null; if (mpi.isElement()) { ns = mpi.getElementQName().getNamespaceURI(); } else { ns = mpi.getTypeQName().getNamespaceURI(); } if (qname.getLocalPart().equals(mpi.getConcreteName().getLocalPart()) && qname.getNamespaceURI().equals(ns)) { return mpi; } } } return null; }
private MessagePartInfo getFaultMessagePart(QName qname, OperationInfo op) { if (op.isUnwrapped() && (op instanceof UnwrappedOperationInfo)) { op = ((UnwrappedOperationInfo)op).getWrappedOperation(); } for (FaultInfo faultInfo : op.getFaults()) { for (MessagePartInfo mpi : faultInfo.getMessageParts()) { String ns = null; if (mpi.isElement()) { ns = mpi.getElementQName().getNamespaceURI(); } else { ns = mpi.getTypeQName().getNamespaceURI(); } if (qname.getLocalPart().equals(mpi.getConcreteName().getLocalPart()) && qname.getNamespaceURI().equals(ns)) { return mpi; } } } return null; } }
private MessagePartInfo getFaultMessagePart(QName qname, OperationInfo op) { if (op.isUnwrapped() && (op instanceof UnwrappedOperationInfo)) { op = ((UnwrappedOperationInfo)op).getWrappedOperation(); } for (FaultInfo faultInfo : op.getFaults()) { for (MessagePartInfo mpi : faultInfo.getMessageParts()) { String ns = null; if (mpi.isElement()) { ns = mpi.getElementQName().getNamespaceURI(); } else { ns = mpi.getTypeQName().getNamespaceURI(); } if (qname.getLocalPart().equals(mpi.getConcreteName().getLocalPart()) && qname.getNamespaceURI().equals(ns)) { return mpi; } } } return null; } }
mpiMap.put(fi, fi.getMessageParts());
mpiMap.put(fi, fi.getMessageParts());
mpiMap.put(fi, fi.getMessageParts());
protected void processFaultDetail(Fault fault, Message msg) { if (fault.getDetail() == null) { return; } Element exDetail = (Element) DOMUtils.getChild(fault.getDetail(), Node.ELEMENT_NODE); if (exDetail == null) { return; } QName qname = new QName(exDetail.getNamespaceURI(), exDetail .getLocalName()); faultWanted = null; BindingOperationInfo boi = msg.getExchange().get( BindingOperationInfo.class); if (boi.isUnwrapped()) { boi = boi.getWrappedOperation(); } for (BindingFaultInfo bfi : boi.getFaults()) { for (MessagePartInfo mpi : bfi.getFaultInfo().getMessageParts()) { if (qname.equals(mpi.getConcreteName())) { faultWanted = bfi; msg.put(BindingFaultInfo.class, faultWanted); break; } } if (faultWanted != null) { break; } } }
FaultInfo fi = bfi.getFaultInfo(); MessagePartInfo mpi = fi.getMessageParts().get(0); if (mpi != null) { Fault fault = (Fault) message.getContent(Exception.class);
Service service = message.getExchange().get(Service.class); MessagePartInfo part = fi.getMessageParts().iterator().next(); DataBinding db = service.getDataBinding();
Service service = message.getExchange().get(Service.class); MessagePartInfo part = fi.getMessageParts().iterator().next(); DataBinding db = service.getDataBinding();
Service service = message.getExchange().get(Service.class); MessagePartInfo part = fi.getMessageParts().iterator().next(); DataBinding db = service.getDataBinding();
CorbaStreamReader streamReader = new CorbaStreamReader(faultEventProducer); Object e = reader.read(fault.getMessageParts().get(0), streamReader); if (!(e instanceof Exception)) { Class<?> exClass = fault.getProperty(Class.class.getName(), Class.class);
begin(f); for (MessagePartInfo part : f.getMessageParts()) { begin(part); end(part);
begin(f); for (MessagePartInfo part : f.getMessageParts()) { begin(part); end(part);
begin(f); for (MessagePartInfo part : f.getMessageParts()) { begin(part); end(part);
begin(f); for (MessagePartInfo part : f.getMessageParts()) { begin(part); end(part);