Package org.jboss.ws.core

Examples of org.jboss.ws.core.CommonSOAPFaultException


/*     */   {
/* 199 */     if ((!"http://www.w3.org/2003/05/soap-envelope".equals(namespaceURI)) && (!"http://schemas.xmlsoap.org/soap/envelope/".equals(namespaceURI)))
/*     */     {
/* 201 */       QName faultCode = Constants.SOAP11_FAULT_CODE_VERSION_MISMATCH;
/* 202 */       String faultString = "Invalid SOAP envelope namespace: " + namespaceURI;
/* 203 */       throw new CommonSOAPFaultException(faultCode, faultString);
/*     */     }
/*     */   }
View Full Code Here


      }
      else
      {
         if (verbose)
         {
            return new CommonSOAPFaultException(e.getFaultCode(), e.getFaultString());
         }
         else
         {
            QName faultCode = new QName(Constants.JBOSS_WSSE_NS, "GenericError", Constants.JBOSS_WSSE_PREFIX);
            return new CommonSOAPFaultException(faultCode, "A WS-Security error occurred.");
         }
      }
   }
View Full Code Here

/*     */         }
/*     */
/* 449 */         if ((soapHeader != null) && (soapHeader.examineMustUnderstandHeaderElements("http://schemas.xmlsoap.org/soap/actor/next").hasNext()))
/*     */         {
/* 451 */           QName faultCode = Constants.SOAP11_FAULT_CODE_MUST_UNDERSTAND;
/* 452 */           throw new CommonSOAPFaultException(faultCode, faultString);
/*     */         }
/*     */
/* 456 */         QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
/* 457 */         throw new CommonSOAPFaultException(faultCode, faultString);
/*     */       }
/*     */     }
/*     */
/* 461 */     return opMetaData;
/*     */   }
View Full Code Here

      }
      catch (IOException ex)
      {
         if(IGNORE_PARSE_ERROR_PROPERTY.equalsIgnoreCase("false")) {
            QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
            throw new CommonSOAPFaultException(faultCode, ex);
         }else if (ignoreParseError) { //kept for backward compatibility
            return null;
         }
        
         QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
         throw new CommonSOAPFaultException(faultCode, ex.getMessage());
        
      }

      return build(soapMessage, domEnv);
   }
View Full Code Here

      }
      catch (IOException ex)
      {
         if(IGNORE_PARSE_ERROR_PROPERTY.equalsIgnoreCase("false")) {
            QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
            throw new CommonSOAPFaultException(faultCode, ex);
         }else if (ignoreParseError) { //kept for backward compatibility
            return null;
         }
        
         QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
         throw new CommonSOAPFaultException(faultCode, ex.getMessage());
      }

      return build(soapMessage, domEnv);
   }
View Full Code Here

/*  88 */       if (ignoreParseError)
/*     */       {
/*  90 */         return null;
/*     */       }
/*  92 */       QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
/*  93 */       throw new CommonSOAPFaultException(faultCode, ex.getMessage());
/*     */     }
/*     */
/*  96 */     return build(soapMessage, domEnv);
/*     */   }
View Full Code Here

/* 109 */       if (ignoreParseError)
/*     */       {
/* 111 */         return null;
/*     */       }
/* 113 */       QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
/* 114 */       throw new CommonSOAPFaultException(faultCode, ex.getMessage());
/*     */     }
/*     */
/* 117 */     return build(soapMessage, domEnv);
/*     */   }
View Full Code Here

/* 100 */     return operation.getConfig();
/*     */   }
/*     */
/*     */   private static CommonSOAPFaultException convertToFault(WSSecurityException e)
/*     */   {
/* 105 */     return new CommonSOAPFaultException(e.getFaultCode(), e.getFaultString());
/*     */   }
View Full Code Here

/*     */     {
/* 181 */       faultEx = (SOAPFaultException)reqEx;
/*     */     }
/* 183 */     else if ((reqEx instanceof CommonSOAPFaultException))
/*     */     {
/* 185 */       CommonSOAPFaultException soapEx = (CommonSOAPFaultException)reqEx;
/* 186 */       QName faultCode = soapEx.getFaultCode();
/* 187 */       String faultString = soapEx.getFaultString();
/* 188 */       Throwable cause = soapEx.getCause();
/* 189 */       SOAPFaultException faultEx = new SOAPFaultException(faultCode, faultString, null, null);
/* 190 */       faultEx.initCause(cause);
/*     */     }
/*     */     else
/*     */     {
View Full Code Here

         EndpointState state = ep.getState();
         if (state != EndpointState.STARTED)
         {
            QName faultCode = Constants.SOAP11_FAULT_CODE_SERVER;
            String faultString = "Endpoint cannot handle requests in state: " + state;
            throw new CommonSOAPFaultException(faultCode, faultString);
         }

         log.debug("BEGIN handleRequest: " + ep.getName());
         beginProcessing = initRequestMetrics(ep);
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.CommonSOAPFaultException

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.