Package javax.xml.soap

Examples of javax.xml.soap.Detail.appendChild()


                fault = javax.xml.soap.SOAPFactory.newInstance().
                        createFault("", f.getFaultName());

                Detail detail=fault.addDetail();
                Node cloned=detail.getOwnerDocument().importNode(WSDLHelper.unwrapMessagePart(f.getFaultMessage()), true);
                detail.appendChild(cloned);
       
            } catch (Exception e) {
                throw new HandlerException(e);
            }
           
View Full Code Here


            fault.setFaultActor(faultactor);
            if(detail != null){
                Detail d = fault.addDetail();
                for(Element det : detail.getDetails()){
                    Node n = fault.getOwnerDocument().importNode(det, true);
                    d.appendChild(n);
                }
            }
            return new SOAPFaultException(fault);
        } catch (SOAPException e) {
            throw new WebServiceException(e);
View Full Code Here

            SOAPFault fault = SOAPVersion.SOAP_11.saajSoapFactory.createFault(faultstring, faultcode);
            if(detail != null){
                Detail d = fault.addDetail();
                for(Element det : detail.getDetails()){
                    Node n = fault.getOwnerDocument().importNode(det, true);
                    d.appendChild(n);
                }
            }
            fault.setFaultActor(faultactor);
            return new SOAPFaultException(fault);
        } catch (SOAPException e) {
View Full Code Here

                        if (Node.ELEMENT_NODE == child.getNodeType()) {
                            if (detail == null) {
                                detail = soapFault.addDetail();
                            }
                            Node importedChild = soapMessage.getSOAPPart().importNode(child, true);
                            detail.appendChild(importedChild);
                        }
                        child = child.getNextSibling();
                    }
                }
View Full Code Here

                            Detail det = soapFault.addDetail();
                            Element fd = fault.getDetail();
                            Node child = fd.getFirstChild();
                            while (child != null) {
                                Node next = child.getNextSibling();
                                det.appendChild(det.getOwnerDocument().importNode(child, true));
                                child = next;
                            }
                        }
                        SOAPFaultException ex = new SOAPFaultException(soapFault);
                        ex.initCause(exp);
View Full Code Here

                            Detail det = soapFault.addDetail();
                            Element fd = fault.getDetail();
                            Node child = fd.getFirstChild();
                            while (child != null) {
                                Node next = child.getNextSibling();
                                det.appendChild(det.getOwnerDocument().importNode(child, true));
                                child = next;
                            }
                        }
                        SOAPFaultException ex = new SOAPFaultException(soapFault);
                        ex.initCause(exp);
View Full Code Here

                            Detail det = soapFault.addDetail();
                            Element fd = fault.getDetail();
                            Node child = fd.getFirstChild();
                            while (child != null) {
                                Node next = child.getNextSibling();
                                det.appendChild(det.getOwnerDocument().importNode(child, true));
                                child = next;
                            }
                        }
                        SOAPFaultException ex = new SOAPFaultException(soapFault);
                        ex.initCause(exp);
View Full Code Here

                        if (Node.ELEMENT_NODE == child.getNodeType()) {
                            if (detail == null) {
                                detail = soapFault.addDetail();
                            }
                            Node importedChild = soapMessage.getSOAPPart().importNode(child, true);
                            detail.appendChild(importedChild);
                        }
                        child = child.getNextSibling();
                    }
                }
View Full Code Here

                        if (Node.ELEMENT_NODE == child.getNodeType()) {
                            if (detail == null) {
                                detail = soapFault.addDetail();
                            }
                            Node importedChild = soapMessage.getSOAPPart().importNode(child, true);
                            detail.appendChild(importedChild);
                        }
                        child = child.getNextSibling();
                    }
                }
View Full Code Here

                            Detail det = soapFault.addDetail();
                            Element fd = fault.getDetail();
                            Node child = fd.getFirstChild();
                            while (child != null) {
                                Node next = child.getNextSibling();
                                det.appendChild(det.getOwnerDocument().importNode(child, true));
                                child = next;
                            }
                        }
                        SOAPFaultException ex = new SOAPFaultException(soapFault);
                        ex.initCause(exp);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.