Package javax.xml.soap

Examples of javax.xml.soap.SOAPException


        if(parent == null)
            throw new IllegalArgumentException(JavaUtils.getMessage("nullParent00"));
        try {
            setParent((MessageElement)parent);
        } catch (Throwable t) {
            throw new SOAPException(t);
        }
    }
View Full Code Here


        throws SOAPException {
        try {
            addChild((MessageElement)element);
            return element;
        } catch (ClassCastException e) {
            throw new SOAPException(e);
        }
    }
View Full Code Here

        org.apache.axis.message.Text text = new org.apache.axis.message.Text(s);
        try {
            addChild((MessageElement)text);
            return this;
        } catch (ClassCastException e) {
            throw new SOAPException(e);
        }
    }
View Full Code Here

    public SOAPElement addAttribute(Name name, String value)
        throws SOAPException {
        try {
            addAttribute(name.getURI(), name.getLocalName(), value);
        } catch (RuntimeException t) {
            throw new SOAPException(t);
        }
        return this;
    }
View Full Code Here

        throws SOAPException {
        try {
            Mapping map = new Mapping(uri, prefix);
            addMapping(map);
        } catch (RuntimeException t) {
            throw new SOAPException(t);
        }
        return this;
    }
View Full Code Here

            throw new IllegalArgumentException(JavaUtils.getMessage("nullParent00"));
        try {
            // cast to force exception if wrong type
            super.setParentElement((SOAPEnvelope)parent);
        } catch (Throwable t) {
            throw new SOAPException(t);
        }
    }
View Full Code Here

        if (soapVersion.equals(SOAPConstants.SOAP_1_1_PROTOCOL)) {
            responseSoapMessage.getSOAPPart().setContent(new StreamSource(new StringReader(SOAP11ResponseMessage)));
        } else if (soapVersion.equals(SOAPConstants.SOAP_1_2_PROTOCOL)) {
            responseSoapMessage.getSOAPPart().setContent(new StreamSource(new StringReader(SOAP12ResponseMessage)));
        } else
            throw new SOAPException("Unrecognized SOAP version [" + soapVersion + "]");
        responseSoapMessage.saveChanges();
        return responseSoapMessage;
    }
View Full Code Here

        if (soapVersion.equals(SOAPConstants.SOAP_1_1_PROTOCOL)) {
            responseSoapMessage.getSOAPPart().setContent(new StreamSource(new StringReader(SOAP11RequestMessage)));
        } else if (soapVersion.equals(SOAPConstants.SOAP_1_2_PROTOCOL)) {
            responseSoapMessage.getSOAPPart().setContent(new StreamSource(new StringReader(SOAP12RequestMessage)));
        } else
            throw new SOAPException("Unrecognized SOAP version [" + soapVersion + "]");
        responseSoapMessage.saveChanges();
        return responseSoapMessage;
    }
View Full Code Here

            else if (soapVersion.equals(SOAPConstants.SOAP_1_2_PROTOCOL))
                return new StreamSource(new StringReader(SOAP12ResponseMessage));
        } else if (mode.equals(Service.Mode.PAYLOAD)) {
            return new StreamSource(new StringReader(ResponseMessagePayload));
        }
        throw new SOAPException("Unrecognized SOAP version [" + soapVersion + "] Service.Mode = [" + mode + "]");
    }
View Full Code Here

                return new StreamSource(new StringReader(SOAP12RequestMessage));
            }
        } else if (mode.equals(Service.Mode.PAYLOAD)) {
            return new StreamSource(new StringReader(RequestMessagePayload));
        }
        throw new SOAPException("Unrecognized SOAP version [" + soapVersion + "] Service.Mode = [" + mode + "]");
    }
View Full Code Here

TOP

Related Classes of javax.xml.soap.SOAPException

Copyright © 2018 www.massapicom. 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.