Hi,
I'm looking to integrate the OneSpan Sign API with our web application using Spring Boot. Is there any sample code available to help me get started?
Thanks,
April 29Created
January 21Last Updated
5 years agoLast Reply
6Replies
172Views
3Users
0Likes
0Links
Duo_Liang | Posts: 3776
Reply to: Spring Boot app with OneSpan Sign RESTful API
Monday, April 29, 2019 at 11:55am
1
votes
Hi there,
Go check this sample project I've built. Simply replace your OneSpan Sign related information in OssService.java class.
The workflow was easy that it uses hardcoded dummy package information to create packages, then generates signer sessions and embed it into an iFrame.
It develops in REST API so you can easily understand and extend it per your own business logic.
Hope this could help!
Duo
Reply to: Spring Boot app with OneSpan Sign RESTful API
Tuesday, May 21, 2019 at 08:34pm
0
votes
Hi
Thanks for the code share.
I was reading through the code.
It uses the traditional method of using HttpUrlConnection, OutputStream, etc.
However, I was eager to know if the same can be implemented using Spring Rest Template.
I have implemented but I was getting 400 bad request.
Any help on this would be highly beneficial.
Thanks
Sumanta
Reply to: Spring Boot app with OneSpan Sign RESTful API
Wednesday, May 22, 2019 at 04:47am
2
votes
Hey Sumanta, Yes, for sure OneSpan Sign API works with RestTemplate. Like I replied in this thread, could do an extra error handling for your Spring RestTemplate something like below:
Which would receive the error stream from OneSpan Sign which contains the exact error message. Then we can troubleshoot the cause of the error. Hope this could help! Duo
Reply to: Spring Boot app with OneSpan Sign RESTful API
Wednesday, May 22, 2019 at 08:16pm
2
votes
Hey Duo,
Your reply is appreciated.
I have gone through the code as well.
I wanted to create a package in Onespan using rest template.
The code you shared is a GET API.
I needed your help for POST API. Please find the code below
Reply to: Spring Boot app with OneSpan Sign RESTful API
Monday, April 29, 2019 at 11:55amReply to: Spring Boot app with OneSpan Sign RESTful API
Monday, April 29, 2019 at 12:00pmReply to: Spring Boot app with OneSpan Sign RESTful API
Tuesday, May 21, 2019 at 08:34pmReply to: Spring Boot app with OneSpan Sign RESTful API
Wednesday, May 22, 2019 at 04:47amHey Sumanta, Yes, for sure OneSpan Sign API works with RestTemplate. Like I replied in this thread, could do an extra error handling for your Spring RestTemplate something like below:
Which would receive the error stream from OneSpan Sign which contains the exact error message. Then we can troubleshoot the cause of the error. Hope this could help! Duo
Reply to: Spring Boot app with OneSpan Sign RESTful API
Wednesday, May 22, 2019 at 08:16pmReply to: Spring Boot app with OneSpan Sign RESTful API
Thursday, May 23, 2019 at 06:23am