SOAP12Fault(CodeType code, ReasonType reason, String node, String role, Element detailObject) { this.code = code; this.reason = reason; this.node = node; this.role = role; if (detailObject != null) { if(detailObject.getNamespaceURI().equals(ns) && detailObject.getLocalName().equals("Detail")){ detail = new DetailType(); for(Element detailEntry : DOMUtil.getChildElements(detailObject)){ detail.getDetails().add(detailEntry); } }else{ detail = new DetailType(detailObject); } } }
SOAP12Fault(CodeType code, ReasonType reason, String node, String role, Element detailObject) { this.code = code; this.reason = reason; this.node = node; this.role = role; if (detailObject != null) { if(detailObject.getNamespaceURI().equals(ns) && detailObject.getLocalName().equals("Detail")){ detail = new DetailType(); for(Element detailEntry : DOMUtil.getChildElements(detailObject)){ detail.getDetails().add(detailEntry); } }else{ detail = new DetailType(detailObject); } } }
SOAP12Fault(CodeType code, ReasonType reason, String node, String role, Element detailObject) { this.code = code; this.reason = reason; this.node = node; this.role = role; if (detailObject != null) { if(detailObject.getNamespaceURI().equals(ns) && detailObject.getLocalName().equals("Detail")){ detail = new DetailType(); for(Element detailEntry : DOMUtil.getChildElements(detailObject)){ detail.getDetails().add(detailEntry); } }else{ detail = new DetailType(detailObject); } } }
/** * This constructor takes soap fault detail among other things. The detail could represent {@link javax.xml.soap.Detail} * or a java object that can be marshalled/unmarshalled by JAXB. * * @param code * @param reason * @param actor * @param detailObject */ SOAP11Fault(QName code, String reason, String actor, Element detailObject) { this.faultcode = code; this.faultstring = reason; this.faultactor = actor; if (detailObject != null) { if ((detailObject.getNamespaceURI() == null || "".equals(detailObject.getNamespaceURI())) && "detail".equals(detailObject.getLocalName())) { detail = new DetailType(); for(Element detailEntry : DOMUtil.getChildElements(detailObject)) { detail.getDetails().add(detailEntry); } } else { detail = new DetailType(detailObject); } } }
/** * This constructor takes soap fault detail among other things. The detail could represent {@link javax.xml.soap.Detail} * or a java object that can be marshalled/unmarshalled by JAXB. * * @param code * @param reason * @param actor * @param detailObject */ SOAP11Fault(QName code, String reason, String actor, Element detailObject) { this.faultcode = code; this.faultstring = reason; this.faultactor = actor; if (detailObject != null) { if ((detailObject.getNamespaceURI() == null || "".equals(detailObject.getNamespaceURI())) && "detail".equals(detailObject.getLocalName())) { detail = new DetailType(); for(Element detailEntry : DOMUtil.getChildElements(detailObject)) { detail.getDetails().add(detailEntry); } } else { detail = new DetailType(detailObject); } } }
/** * This constructor takes soap fault detail among other things. The detail could represent {@link javax.xml.soap.Detail} * or a java object that can be marshalled/unmarshalled by JAXB. * * @param code * @param reason * @param actor * @param detailObject */ SOAP11Fault(QName code, String reason, String actor, Element detailObject) { this.faultcode = code; this.faultstring = reason; this.faultactor = actor; if (detailObject != null) { if ((detailObject.getNamespaceURI() == null || "".equals(detailObject.getNamespaceURI())) && "detail".equals(detailObject.getLocalName())) { detail = new DetailType(); for(Element detailEntry : DOMUtil.getChildElements(detailObject)) { detail.getDetails().add(detailEntry); } } else { detail = new DetailType(detailObject); } } }
protected void access() { if (!accessedMessage) { try { envelopeAttrs = sm.getSOAPPart().getEnvelope().getAttributes(); Node body = sm.getSOAPBody(); bodyAttrs = body.getAttributes(); soapVersion = SOAPVersion.fromNsUri(body.getNamespaceURI()); //cature all the body elements bodyParts = DOMUtil.getChildElements(body); //we treat payload as the first body part payload = bodyParts.size() > 0 ? bodyParts.get(0) : null; // hope this is correct. Caching the localname and namespace of the payload should be fine // but what about if a Handler replaces the payload with something else? Weel, may be it // will be error condition anyway if (payload != null) { payloadLocalName = payload.getLocalName(); payloadNamespace = payload.getNamespaceURI(); } accessedMessage = true; } catch (SOAPException e) { throw new WebServiceException(e); } } }
protected void access() { if (!accessedMessage) { try { envelopeAttrs = sm.getSOAPPart().getEnvelope().getAttributes(); Node body = sm.getSOAPBody(); bodyAttrs = body.getAttributes(); soapVersion = SOAPVersion.fromNsUri(body.getNamespaceURI()); //cature all the body elements bodyParts = DOMUtil.getChildElements(body); //we treat payload as the first body part payload = bodyParts.size() > 0 ? bodyParts.get(0) : null; // hope this is correct. Caching the localname and namespace of the payload should be fine // but what about if a Handler replaces the payload with something else? Weel, may be it // will be error condition anyway if (payload != null) { payloadLocalName = payload.getLocalName(); payloadNamespace = payload.getNamespaceURI(); } accessedMessage = true; } catch (SOAPException e) { throw new WebServiceException(e); } } }
protected void access() { if (!accessedMessage) { try { envelopeAttrs = sm.getSOAPPart().getEnvelope().getAttributes(); Node body = sm.getSOAPBody(); bodyAttrs = body.getAttributes(); soapVersion = SOAPVersion.fromNsUri(body.getNamespaceURI()); //cature all the body elements bodyParts = DOMUtil.getChildElements(body); //we treat payload as the first body part payload = bodyParts.size() > 0 ? bodyParts.get(0) : null; // hope this is correct. Caching the localname and namespace of the payload should be fine // but what about if a Handler replaces the payload with something else? Weel, may be it // will be error condition anyway if (payload != null) { payloadLocalName = payload.getLocalName(); payloadNamespace = payload.getNamespaceURI(); } accessedMessage = true; } catch (SOAPException e) { throw new WebServiceException(e); } } }