Package com.izforge.soapdtc

Examples of com.izforge.soapdtc.SoapFault


        if (endpointHandler == null) return;

        try
        {
            SoapMessage inMessage = SoapMessageUtils.readSoapMessageFromStream(request.getInputStream(), documentFactory);
            SoapFault headerFault = processHeaders(inMessage, endpointHandler);
            SoapMessage outMessage;
            if (headerFault != null)
            {
                outMessage = new SoapMessage(documentFactory);
                outMessage.getBodyElement().add(headerFault.toXmlElement());
            }
            else
            {
                outMessage = endpointHandler.handleRequestResponse(inMessage, request.getParameter("SOAPAction"));
            }
View Full Code Here


        {
            Element header = (Element) hit.next();
            ISoapHeaderHandler handler = headerHandlersMapping.get(header.getQName());
            if (headerCannotBeUnderstood(handler, header, endpointHandler))
            {
                SoapFault fault = new SoapFault(documentFactory);
                fault.setCode(SoapConstants.SOAP12_FAULT_MUST_UNDERSTAND, null, null);
                fault.addReason("en", "A mandatory SOAP header cannot be understood: " + header.toString());
                return fault;
            }
            if (handler != null)
            {
                SoapFault fault = handler.handleHeader(header, inMessage);
                if (fault != null)
                {
                    return fault;
                }
            }
View Full Code Here

TOP

Related Classes of com.izforge.soapdtc.SoapFault

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.