Package org.apache.ws.commons.soap

Examples of org.apache.ws.commons.soap.SOAPFaultText


                }


                SOAPFaultReason reason = factory.createSOAPFaultReason(
                        (SOAPFault) parent, builder);
                SOAPFaultText faultText = factory.createSOAPFaultText(reason);
                processNamespaceData(reason, true);
                processAttributes(reason);

                processText(parser, faultText);
                ((OMNodeEx)reason).setComplete(true);
View Full Code Here


                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));

            Iterator iteratorInReason = reason.getChildren();

            iteratorInReason.next();
            SOAPFaultText text = (SOAPFaultText) iteratorInReason.next();
            assertTrue("SOAP 1.2 :- Fault text local name mismatch",
                    text.getLocalName().equals(
                            SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME));
            assertTrue("SOAP 1.2 :- Text namespace uri mismatch",
                    text.getNamespace().getName().equals(
                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
            assertTrue("SOAP 1.2 :- Text value mismatch",
                    text.getText().equals("Sender Timeout"));

            iteratorInFault.next();
            SOAPFaultNode node = (SOAPFaultNode) iteratorInFault.next();
            assertTrue("SOAP 1.2 :- Fault node local name mismatch",
                    node.getLocalName().equals(
View Full Code Here

    protected abstract void extractToEprReferenceParameters(EndpointReference toEPR, SOAPHeader header);

    private void handleNoServiceGroupContextIDCase(MessageContext msgContext) {
        SOAPFactory soapFac = msgContext.isSOAP11() ? OMAbstractFactory.getSOAP11Factory() : OMAbstractFactory.getSOAP12Factory();
        SOAPFaultReason soapFaultReason = soapFac.createSOAPFaultReason(null);
        SOAPFaultText soapFaultText = soapFac.createSOAPFaultText(soapFaultReason);
        soapFaultText.setLang("en");
        soapFaultText.setText(Messages.getMessage("serviceGroupIDNotFound"));

        msgContext.setProperty(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, soapFaultReason);
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.commons.soap.SOAPFaultText

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.