Package nl.clockwork.mule.ebms.model.ebxml

Examples of nl.clockwork.mule.ebms.model.ebxml.ErrorList


      GregorianCalendar timestamp = new GregorianCalendar();

      EbMSMessage msg = (EbMSMessage)message.getPayload();
      MessageHeader messageHeader = EbMSMessageUtils.createMessageHeader(msg.getMessageHeader(),hostname,timestamp,EbMSMessageType.MESSAGE_ERROR.action());
     
      ErrorList errorList = new ErrorList();

      errorList.setVersion(Constants.EBMS_VERSION);
      errorList.setMustUnderstand(true);
      errorList.setHighestSeverity(SeverityType.ERROR);

      Error error = (Error)message.getProperty(Constants.EBMS_ERROR);
      if (error == null)
        EbMSMessageUtils.createError(Constants.EbMSErrorLocation.UNKNOWN.location(),Constants.EbMSErrorCode.UNKNOWN.errorCode(),"An unknown error occurred!");
      errorList.getError().add(error);
     
      message.setPayload(new EbMSMessageError(messageHeader,errorList));
      return message;
    }
    catch (DatatypeConfigurationException e)
View Full Code Here

TOP

Related Classes of nl.clockwork.mule.ebms.model.ebxml.ErrorList

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.