Web Twain With Local Service with HTTPS url

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
tony_c
Posts: 5
Joined: Tue May 22, 2018 5:21 pm

Web Twain With Local Service with HTTPS url

Post by tony_c »

We have a situation where our server is in Cloud and is accessed by url that is HTTPS. The application is web based and we are using the Vintasoft Twain Jquery library to scan images using Local Service VintasoftWcfTwainService running at http://localhost:25320/twain. The SDK license is for Http://ncptscloudtest.com and https://secure.cloudtest.com.
The problem is that IE running on HTTPS will not allow CORS web service call to http://localhost:25320/twain a non https url. This would probably work in Chrome but will not in IE, edge or firefox. Our clients are using IE11.
By the way we did try compiling the VintasoftWcfTwainService project after changing the URL to https://127.0.0.1 in the StartService() method. This gives a error when service is started.

This has become a bottle neck now for us. Can you suggest a solution?
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: Web Twain With Local Service with HTTPS url

Post by Alex »

Hello Tony,

For solving your problem you need to use web service with HTTPS support. VintaSoft TWAIN Web Service, which is based on Web API,
supports HTTP and HTTPS protocols and we suggest you to use VintaSoft TWAIN Web Service instead of VintaSoft TWAIN WCF Service.

If you cannot use VintaSoft TWAIN Web Service and needs to use VintaSoft TWAIN WCF Service, you need to enable HTTPS support in WCF service.
Please read how to enable HTTPS support in WCF service in internet. For example you can see this link:
https://stackoverflow.com/questions/292 ... ul-service

Best regards, Alexander
Post Reply