Package org.apache.ws.resource.faults

Examples of org.apache.ws.resource.faults.ErrorCode


      }

      m_name          = bfe.getName(  );
      m_timestamp     = bfe.getTimestamp(  );
      m_originator    = bfe.getOriginator(  );
      ErrorCode errorCode = bfe.getErrorCode(  );
      if ( errorCode != null )
      {
         try
         {
            m_errorCode =
               new _BaseFaultType_ErrorCode( toMessageElements( errorCode.getContent(  ) ),
                                             new URI( errorCode.getDialect(  ).toString(  ) ) );
         }
         catch ( URI.MalformedURIException murie )
         {
            throw new RuntimeException( murie );
         }
View Full Code Here


    * @return  Axis-generated _BaseFaultType_ErrorCode
    */
   private static BaseFaultTypeErrorCode toAxisErrorCode( BaseFaultException base_fault )
   {
      BaseFaultTypeErrorCode axis_error_code = new BaseFaultTypeErrorCode(  );
      ErrorCode                error_code = base_fault.getErrorCode(  );

      if ( error_code != null )
      {
         SOAPElement[]    base_fault_errors = error_code.getContent(  );

         MessageElement[] error_elems = new MessageElement[base_fault_errors.length];

         for ( int i = 0; i < base_fault_errors.length; i++ )
         {
            error_elems[i] = (MessageElement) base_fault_errors[i];
         }

         axis_error_code.set_any( error_elems );

         try
         {
            axis_error_code.setDialect( AxisUtils.toAxisURI( error_code.getDialect(  ) ) );
         }
         catch ( URI.MalformedURIException e )
         {
            throw new RuntimeException( e );
         }
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.faults.ErrorCode

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.