This topic contains 1 reply, has 2 voices, and was last updated by  Duo_Liang 1 month, 4 weeks ago.

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

    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: 520

    Score

    0

    Hi Oliver,

    Thank you for your posting!

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

    You can consider using createPackage() in the following scenarios:
    (1) when want to add signatures for your sender/owner while you didn’t manually assign your sender/owner as a signer with the function .withSigner()
    (2)when you want to first create a package without documents and then gradually upload documents to your package.

    The rest situations when you have your DocumentPackage object fully baked with Document Info, it’s suggested to use createPackageOneStep() function in order to reduce the number of API calls.

    Hope this could help you!
    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    • This reply was modified 2 weeks, 6 days ago by  Duo_Liang.
    • This reply was modified 1 week, 3 days ago by  Duo_Liang.

You must be logged in to reply to this topic.