This topic contains 1 reply, has 2 voices, and was last updated by  Duo_Liang 1 week, 3 days ago.

  • Author
    Posts
  • Participant
    OliverH
    Member since: 11.10.2018
    Number of posts: 2

    Hi,

    We are new to esignlive, and developing with JAVA. After going through few guidances, I found when creating a package, some code using
    PackageId packageId = eslClient.createPackageOneStep(documentPackage);
    and some code using
    PackageId packageId = eslClient.createPackage(documentPackage);
    My question here is, what’s the difference between them? Why you have two methods with same function?

    Thanks in advance

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 398

    Score

    0

    Hi Oliver,

    Thanks for posting! And currently, we suggest to use createPackageOneStep() method to create packages.

    The differences between them two is:
    In createPackage function, SDK will use separate REST calls to create package first and then upload document and its metadata one by one.
    While in createPackageOneStep function, SDK will create package with all documents in one shoot.

    We recommend to use createPackageOneStep because it reduces the number of API calls especially when you have multiple documents to upload.

    Hope this could help you!
    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist

You must be logged in to reply to this topic.