Examples of BevestigAfleverBericht


Examples of nl.clockwork.mule.ebms.stub.ebf.model.afleveren.bevestiging.BevestigAfleverBericht

  {
    try
    {
      EbMSMessageContent content = (EbMSMessageContent)message.getPayload();
      AfleverBericht afleverBericht = XMLMessageBuilder.getInstance(AfleverBericht.class).handle(new String(content.getAttachments().iterator().next().getContent()));
      BevestigAfleverBericht afleverBevestiging = new BevestigAfleverBericht();

      afleverBevestiging.setKenmerk(afleverBericht.getKenmerk());
      afleverBevestiging.setBerichtsoort(afleverBericht.getBerichtsoort());

      FoutType error = (FoutType)message.getProperty("AFLEVERBERICHT_ERROR");
      if (error == null)
        afleverBevestiging.setTijdstempelAfgeleverd(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));
      else
        afleverBevestiging.setFout(error);

      List<EbMSAttachment> attachments = new ArrayList<EbMSAttachment>();
      attachments.add(new EbMSAttachment(name,"application/xml",XMLMessageBuilder.getInstance(BevestigAfleverBericht.class).handle(afleverBevestiging).getBytes()));

      return new EbMSMessageContent(new EbMSMessageContext(cpaId,service,action,content.getContext().getConversationId()),attachments);
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.