Examples of addFaultSubCode()


Examples of org.apache.axis.AxisFault.addFaultSubCode()

                    if (soapConstants == SOAPConstants.SOAP12_CONSTANTS) {
                        f.setFaultCode(code.getFaultCode());

                        SOAPFaultCodeBuilder c = code;
                        while ((c = c.getNext()) != null) {
                            f.addFaultSubCode(c.getFaultCode());
                        }
                    } else {
                        f.setFaultCode(faultCode);
                    }
View Full Code Here

Examples of org.apache.axis.AxisFault.addFaultSubCode()

                            (msgContext.getProperty(Constants.MC_NO_OPERATION_OK) == null)) &&
                        soapConstants == SOAPConstants.SOAP12_CONSTANTS) {
                    AxisFault fault =
                            new AxisFault(Constants.FAULT_SOAP12_SENDER,
                                    "No such procedure", null, null);
                    fault.addFaultSubCode(
                            Constants.FAULT_SUBCODE_PROC_NOT_PRESENT);
                    throw new SAXException(fault);
                }

                // Only deserialize this way if there is a unique operation
View Full Code Here

Examples of org.apache.axis.AxisFault.addFaultSubCode()

            }

            // If we're SOAP 1.2, getting to this point means bad arguments.
            if (!msgContext.isClient() && soapConstants == SOAPConstants.SOAP12_CONSTANTS) {
                AxisFault fault = new AxisFault(Constants.FAULT_SOAP12_SENDER, "string", null, null);
                fault.addFaultSubCode(Constants.FAULT_SUBCODE_BADARGS);
                throw new SAXException(fault);
            }

            if (savedException != null) {
                throw savedException;
View Full Code Here

Examples of org.apache.axis.AxisFault.addFaultSubCode()

                            (msgContext.getProperty(Constants.MC_NO_OPERATION_OK) == null)) &&
                        soapConstants == SOAPConstants.SOAP12_CONSTANTS) {
                    AxisFault fault =
                            new AxisFault(Constants.FAULT_SOAP12_SENDER,
                                    "No such procedure", null, null);
                    fault.addFaultSubCode(
                            Constants.FAULT_SUBCODE_PROC_NOT_PRESENT);
                    throw new SAXException(fault);
                }

                // Only deserialize this way if there is a unique operation
View Full Code Here

Examples of org.apache.axis.AxisFault.addFaultSubCode()

            }

            // If we're SOAP 1.2, getting to this point means bad arguments.
            if (!msgContext.isClient() && soapConstants == SOAPConstants.SOAP12_CONSTANTS) {
                AxisFault fault = new AxisFault(Constants.FAULT_SOAP12_SENDER, "string", null, null);
                fault.addFaultSubCode(Constants.FAULT_SUBCODE_BADARGS);
                throw new SAXException(fault);
            }

            if (savedException != null) {
                throw savedException;
View Full Code Here

Examples of org.apache.axis.AxisFault.addFaultSubCode()

                    if (soapConstants == SOAPConstants.SOAP12_CONSTANTS) {
                        f.setFaultCode(code.getFaultCode());

                        SOAPFaultCodeBuilder c = code;
                        while ((c = c.getNext()) != null) {
                            f.addFaultSubCode(c.getFaultCode());
                        }
                    } else {
                        f.setFaultCode(faultCode);
                    }
View Full Code Here

Examples of org.apache.axis.AxisFault.addFaultSubCode()

                        new AxisFault(Constants.FAULT_SOAP12_SENDER,
                                      Messages.getMessage("noSuchOperation",
                                                          methodName),
                                      null,
                                      null);
                fault.addFaultSubCode(Constants.FAULT_SUBCODE_PROC_NOT_PRESENT);
                throw new SAXException(fault);
            } else {
                throw new AxisFault(Constants.FAULT_CLIENT, Messages.getMessage("noSuchOperation", methodName),
                        null, null);                       
            }
View Full Code Here

Examples of org.springframework.ws.soap.soap12.Soap12Fault.addFaultSubcode()

            }
            else if (soapBody instanceof Soap12Body) {
                Soap12Body soap12Body = (Soap12Body) soapBody;
                Soap12Fault soap12Fault = soap12Body.addServerOrReceiverFault(faultStringOrReason, definition
                        .getLocale());
                soap12Fault.addFaultSubcode(definition.getFaultCode());
                fault = soap12Fault;
            }
            else {
                throw new IllegalStateException("This class only supports SOAP 1.1 and SOAP 1.2.");
            }
View Full Code Here

Examples of org.springframework.ws.soap.soap12.Soap12Fault.addFaultSubcode()

    @Override
    public Soap12Fault addDataEncodingUnknownFault(QName[] subcodes, String reason, Locale locale) {
        QName name = new QName(SoapVersion.SOAP_12.getEnvelopeNamespaceUri(), "DataEncodingUnknown");
        Soap12Fault fault = addFault(name, reason, locale);
        for (QName subcode : subcodes) {
            fault.addFaultSubcode(subcode);
        }
        return fault;
    }

    protected Soap12Fault addFault(QName faultCode, String faultString, Locale faultStringLocale) {
View Full Code Here

Examples of org.springframework.ws.soap.soap12.Soap12Fault.addFaultSubcode()

        }
        else if (message.getSoapBody() instanceof Soap12Body) {
            Soap12Body soapBody = (Soap12Body) message.getSoapBody();
            Soap12Fault soapFault =
                soapBody.addClientOrSenderFault(reason, Locale.ENGLISH);
            soapFault.addFaultSubcode(subcode);
            return soapFault;
        }
        return null;
    }
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.