Examples of FaultCode


Examples of com.betfair.cougar.api.fault.FaultCode

    @Override
    public CougarFault unMarshallFault(InputStream inputStream, String encoding) {
        final HashMap<String,Object> faultMap = (HashMap<String,Object>) unmarshall(inputStream, HashMap.class, encoding);

        final String faultString = (String)faultMap.get("faultstring");
        final FaultCode faultCode = FaultCode.valueOf((String)faultMap.get("faultcode"));


        final HashMap<String, Object> detailMap = (HashMap<String, Object>)faultMap.get("detail");
        String exceptionName = (String)detailMap.get("exceptionname");
View Full Code Here

Examples of com.betfair.cougar.api.fault.FaultCode

    @Override
    public CougarFault unMarshallFault(InputStream inputStream, String encoding) {
        final HashMap<String,Object> faultMap = (HashMap<String,Object>) unmarshall(inputStream, HashMap.class, encoding);

        final String faultString = (String)faultMap.get("faultstring");
        final FaultCode faultCode = FaultCode.valueOf((String)faultMap.get("faultcode"));


        final HashMap<String, Object> detailMap = (HashMap<String, Object>)faultMap.get("detail");
        String exceptionName = (String)detailMap.get("exceptionname");
View Full Code Here

Examples of com.betfair.cougar.api.fault.FaultCode

                      } else {
                          return new InvocationResponseImpl(null, new CougarClientException(code, faultDetail.getDetailMessage(), faultDetail.getCause()));
                      }
                  }
                  else {
                        FaultCode faultCode = code == ServerFaultCode.ServiceCheckedException ? FaultCode.Server : code.getResponseCode().getFaultCode();
                      return new InvocationResponseImpl(null, new CougarClientException(code, faultCode + " fault received from remote server: "+code,
                                new CougarClientException(code, faultDetail.getDetailMessage())
                        ));
                  }
        }
View Full Code Here

Examples of com.betfair.cougar.api.fault.FaultCode

                      } else {
                          return new InvocationResponseImpl(null, new CougarServiceException(code, faultDetail.getDetailMessage(), faultDetail.getCause()));
                      }
                  }
                  else {
                        FaultCode faultCode = code == ServerFaultCode.ServiceCheckedException ? FaultCode.Server : code.getResponseCode().getFaultCode();
                      return new InvocationResponseImpl(null, new CougarServiceException(code, faultCode + " fault received from remote server: "+code,
                                new CougarServiceException(code, faultDetail.getDetailMessage())
                        ));
                  }
        }
View Full Code Here

Examples of com.betfair.cougar.api.fault.FaultCode

    public CougarFault unMarshallFault(InputStream inputStream, String encoding) {
        //noinspection unchecked
        final HashMap<String,Object> faultMap = (HashMap<String,Object>) unmarshall(inputStream, HashMap.class, encoding, true);

        final String faultString = (String)faultMap.get("faultstring");
        final FaultCode faultCode = FaultCode.valueOf((String) faultMap.get("faultcode"));


        //noinspection unchecked
        final HashMap<String, Object> detailMap = (HashMap<String, Object>)faultMap.get("detail");
        String exceptionName = (String)detailMap.get("exceptionname");
View Full Code Here

Examples of com.betfair.cougar.api.fault.FaultCode

    public CougarFault unMarshallFault(InputStream inputStream, String encoding) {
        //noinspection unchecked
        final HashMap<String,Object> faultMap = (HashMap<String,Object>) unmarshall(inputStream, HashMap.class, encoding, true);

        final String faultString = (String)faultMap.get("faultstring");
        final FaultCode faultCode = FaultCode.valueOf((String) faultMap.get("faultcode"));


        //noinspection unchecked
        final HashMap<String, Object> detailMap = (HashMap<String, Object>)faultMap.get("detail");
        String exceptionName = (String)detailMap.get("exceptionname");
View Full Code Here

Examples of org.apache.axis2.fault.FaultCode

     * @param fault incoming fault
     */
    private void init(SOAPFault fault) {
        SOAPFaultCode faultcodesource = fault.getCode();

        faultCode = new FaultCode(faultcodesource);
        detail = fault.getDetail();
        fault.getNode();
    }
View Full Code Here

Examples of org.apache.axis2.fault.FaultCode

     * @param fault incoming fault
     */
    private void init(SOAPFault fault) {
        SOAPFaultCode faultcodesource = fault.getCode();

        faultCode = new FaultCode(faultcodesource);
        detail = fault.getDetail();
        fault.getNode();
    }
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.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(rmNamespaceValue);

    FaultCode faultCode = new FaultCode(rmNamespaceValue);
    faultCode.setFaultCode(faultData.getSubcode());
    sequenceFault.setFaultCode(faultCode);
  }
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.