Giter Club home page Giter Club logo

Comments (6)

phax avatar phax commented on June 5, 2024

Part of the 0.9.6 release

from phase4.

kukel avatar kukel commented on June 5, 2024

Does this still mean I need to manually parse the SBD(H) and retrieve the sender, recipient documenttypeid etc? Just that the SBDH is not created? I thought with your AS2 solution this was not needed or am I wrong?

from phase4.

phax avatar phax commented on June 5, 2024

If you want phase4 to build your SBDH, you use Phase4PeppolSender.builder () whereas if you already have an SBDH, you use Phase4PeppolSender.sbdhBuilder() to set the necessary settings. The difference is in validation etc.
The setup here is not comparable to the AS2 solution and was rebuild from scratch (hopefully simpler).

from phase4.

kukel avatar kukel commented on June 5, 2024

Ok, maybe my expectation was wrong. With passing on an existing SBDH, I expected the sbdhBuilder to extract the recipient, doctype etc from the existing SDBH so I would not need to pass those on manually. This does not seem to be the case. Would it be an interesting enhancement? E.g. when doing Phase4PeppolSender.sbdhBuilder(true) it uses the info from the existing header...

from phase4.

phax avatar phax commented on June 5, 2024

@kukel Would something like this suffice:

    @Nonnull
    public SBDHBuilder payloadAndMetadata (@Nonnull final PeppolSBDHDocument aSBDH)
    {
      ValueEnforcer.notNull (aSBDH, "SBDH");
      return senderParticipantID (aSBDH.getSenderAsIdentifier ())
                   .receiverParticipantID (aSBDH.getReceiverAsIdentifier ())
                   .documentTypeID (aSBDH.getDocumentTypeAsIdentifier ())
                   .processID (aSBDH.getProcessAsIdentifier ())
                   .payload (new SBDMarshaller ().getAsBytes (new PeppolSBDHDocumentWriter ().createStandardBusinessDocument (aSBDH)));
    }

or what is your input format of the SBDH?

from phase4.

phax avatar phax commented on June 5, 2024

Part of 0.10.2 release

from phase4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.