Examples of FaultCode


Examples of org.apache.sandesha2.wsrm.FaultCode

      MessageContext faultMessageContext, FaultData faultData,
      SOAPFactory factory, String rmNamespaceValue) throws SandeshaException {

    SequenceFault sequenceFault = new SequenceFault(rmNamespaceValue);

    FaultCode faultCode = new FaultCode(rmNamespaceValue);
    faultCode.setFaultCode(faultData.getSubcode());
    if (faultData.getDetailString() != null)
      faultCode.setDetail(faultData.getDetailString());
    else {
      faultCode.setDetailOMElement(faultData.getDetail());
      faultCode.setExtendedDetailOMElement(faultData.getDetail2());
    }
    sequenceFault.setFaultCode(faultCode);
   
    sequenceFault.toOMElement(faultMessageContext.getEnvelope().getHeader());
  }
View Full Code Here

Examples of org.apache.sandesha2.wsrm.FaultCode

      MessageContext faultMessageContext, FaultData faultData,
      SOAPFactory factory, String rmNamespaceValue) throws SandeshaException {

    SequenceFault sequenceFault = new SequenceFault(factory, rmNamespaceValue);

    FaultCode faultCode = new FaultCode(factory, rmNamespaceValue);
    faultCode.setFaultCode(faultData.getSubcode());
    sequenceFault.setFaultCode(faultCode);
  }
View Full Code Here

Examples of org.apache.sandesha2.wsrm.FaultCode

      MessageContext faultMessageContext, FaultData faultData,
      SOAPFactory factory, String rmNamespaceValue) throws SandeshaException {

    SequenceFault sequenceFault = new SequenceFault(rmNamespaceValue);

    FaultCode faultCode = new FaultCode(rmNamespaceValue);
    faultCode.setFaultCode(faultData.getSubcode());
    if (faultData.getDetailString() != null)
      faultCode.setDetail(faultData.getDetailString());
    else {
      faultCode.setDetailOMElement(faultData.getDetail());
      faultCode.setExtendedDetailOMElement(faultData.getDetail2());
    }
    sequenceFault.setFaultCode(faultCode);
   
    sequenceFault.toHeader(faultMessageContext.getEnvelope().getHeader());
  }
View Full Code Here

Examples of org.apache.sandesha2.wsrm.FaultCode

      MessageContext faultMessageContext, FaultData faultData,
      SOAPFactory factory) {

    SequenceFault sequenceFault = new SequenceFault(factory);

    FaultCode faultCode = new FaultCode(factory);
    faultCode.setFaultCode(faultData.getSubcode());
    sequenceFault.setFaultCode(faultCode);
  }
View Full Code Here

Examples of org.opensaml.ws.soap.soap11.FaultCode

       
        XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
       
        Fault faultObj =  (Fault) builderFactory.getBuilder(Fault.DEFAULT_ELEMENT_NAME)
            .buildObject(Fault.DEFAULT_ELEMENT_NAME);
        FaultCode faultCodeObj =  (FaultCode) builderFactory.getBuilder(FaultCode.DEFAULT_ELEMENT_NAME)
            .buildObject(FaultCode.DEFAULT_ELEMENT_NAME);
        FaultString faultStringObj =  (FaultString) builderFactory.getBuilder(FaultString.DEFAULT_ELEMENT_NAME)
            .buildObject(FaultString.DEFAULT_ELEMENT_NAME);
       
        faultCodeObj.setValue(faultCode);
        faultObj.setCode(faultCodeObj);
       
        faultStringObj.setValue(faultString);
        faultObj.setMessage(faultStringObj);
       
View Full Code Here

Examples of org.opensaml.ws.soap.soap11.FaultCode

       
        XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
       
        Fault faultObj =  (Fault) builderFactory.getBuilder(Fault.DEFAULT_ELEMENT_NAME)
            .buildObject(Fault.DEFAULT_ELEMENT_NAME);
        FaultCode faultCodeObj =  (FaultCode) builderFactory.getBuilder(FaultCode.DEFAULT_ELEMENT_NAME)
            .buildObject(FaultCode.DEFAULT_ELEMENT_NAME);
        FaultString faultStringObj =  (FaultString) builderFactory.getBuilder(FaultString.DEFAULT_ELEMENT_NAME)
            .buildObject(FaultString.DEFAULT_ELEMENT_NAME);
       
        faultCodeObj.setValue(faultCode);
        faultObj.setCode(faultCodeObj);
       
        faultStringObj.setValue(faultString);
        faultObj.setMessage(faultStringObj);
       
View Full Code Here

Examples of org.w3._2003._05.soap_envelope.Faultcode

        } catch (Exception e) {
            throw new RuntimeCamelException("Exception while trying to get fault details", e);
        }

        Fault fault = new Fault();
        Faultcode code = new Faultcode();
        code.setValue(FAULT_CODE_SERVER);
        fault.setCode(code);

        Reasontext text = new Reasontext();
        text.setValue(exception.getMessage());
        text.setLang("en");
View Full Code Here

Examples of org.w3._2003._05.soap_envelope.Faultcode

        } catch (Exception e) {
            throw new RuntimeCamelException("Exception while trying to get fault details", e);
        }

        Fault fault = new Fault();
        Faultcode code = new Faultcode();
        code.setValue(FAULT_CODE_SERVER);
        fault.setCode(code);

        Reasontext text = new Reasontext();
        text.setValue(exception.getMessage());
        text.setLang("en");
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.