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?
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 Liang OneSpan Junior Technical Evangelist
This reply was modified 3 months ago by Duo_Liang.
This reply was modified 2 months, 3 weeks ago by Duo_Liang.