2 - How to Set Up the MagTek SCRA Libraries
Dynamag, DynaMAX, and eDynamo| Secure Card Reader Authenticator | Programmer’s Reference (WCF)
Page 9
2
How to Set Up the MagTek SCRA Libraries
2.1
How to Setup Up the MagTek SCRA Development Environment
To set up the MTSCRA Libraries, follow these steps:
1) Download the
Dynamag, DynaMAX, and eDynamo Secure Card Reader Authenticator Windows
API Install
, available from MagTek.com
(
Support
>
Software
>
Programming Tools
>
Dynamag, DynaMAX, and eDynamo Secure Card
Reader Authenticator Windows API
>
Dynamag, DynaMAX, and eDynamo SCRA Windows API
)
2) Right-click
99510133.exe
and select
Run as administrator
. The installer will place all
dependencies in appropriate paths.
To build and run the MTSCRA Demo software, follow these steps:
1) For 64-bit machine, launch Visual Studio 2013 and open
C:\Program Files (x86)\MagTek\SCRA
Windows SDK\Sample Code\CPP\Source\VCDemo.vcxproj
2) For 32-bit machine, launch Visual Studio 2013 and open
C:\Program Files\MagTek\SCRA
Windows SDK\Sample Code\CPP\Source\VCDemo.vcxproj
3) In the
Solution Explorer
, select
VCDemo
.
4) Select
Build
>
Build VCDemo
, or press
Shift-F6
to build the MTSCRA Demo.
5) Select
Debug
->
Start Without Debugging
to run the MTSCRA Demo, or select
Debug
->
Start
Debugging
to run the MTSCRA Demo in debug mode.
2.2
How to Connect MTSCRA WCF Service to WCF Host Demo
To use the WCF Host Demo (MTSCRAWCFHost.exe) use base address
and add two endpoints on it.
<endpoint address="ajax" binding="webHttpBinding" behaviorConfiguration="ajaxBehavior"
contract="MTSCRAWCF.IMTSCRA" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
2.2.1
Connect web service in C# Project
1)
Open your C# project
2)
Select
PROJECT
->
Add Service Reference