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

  • Author
    Posts
  • Participant
    amandeep
    Newbie
    Member since: 10.11.2017
    Number of posts: 3

    One of our customer is currently working on rewriting their functionality for changing a package status to Draft, and they are running into some issues with getting the sdk’s functionality to work.

    Here is the code that he has written so far, as well as the Logging outputs that he has to try and can you please help us to troubleshoot.

    final EslClient eslClient = *I am retrieving the eslClient here with information passed into my method*

    final PackageId packageId = new PackageId(“I-Cd0CvwjGJbNfi6y6fm9SIpigw=”);

    LOGGER.info(“Changing Package To Draft for: ” + packageId.getId()); //Output: “Changing Package To Draft for: I-Cd0CvwjGJbNfi6y6fm9SIpigw=”

    eslClient.changePackageStatusToDraft(packageId);

    final DocumentPackage retrievedPackage = eslClient.getPackage(packageId);

    LOGGER.info(“Retrieved Status: ” + retrievedPackage.getStatus()); //Output: “Retrieved Status: SENT”

    final SigningStatus signingStatus = eslClient.getSigningStatus(packageId, null, null);

    LOGGER.info(“Signing Status should be DRAFT: ” + signingStatus.getToken()); //Output: “Signing Status should be DRAFT: SIGNING_PENDING”

    Help is appreciated.
    Thanks,

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

    Score

    0

    Hi there,

    For the first glance, your code is fine and the same code and environment(US1 sandbox) works at my side.

    You mentioned that you are rewriting the code, so may I know the SDK version you are currently using? And does the previous code work well? Does this issue only happen on this package or all SENT packages?

    Can you go to your WebUI dashboard, navigate to your package, and click the “Edit” button to see whether it can change the status to DRAFT?

    Hope this could help!
    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    • This reply was modified 3 months, 1 week ago by  Duo_Liang.
    • This reply was modified 3 months, 1 week ago by  Duo_Liang.
    • This reply was modified 3 months, 1 week ago by  Duo_Liang.

You must be logged in to reply to this topic.