Realtime transactions with C#

Below is an example of a SOAP call to SECVPN.validateCardFull using Visual Studio .Net and C#.

Note: You must perform the following steps and in order for the code listed below to work

 
  • Generate the SECVPNService.cs file
This can be accomplished using the wsdl.exe program that is included with the .net SDK. Simply run the command 'wsdl https://www.secpay.com/java-bin/services/SECCardService?wsdl' from an internet enabled machine to generate this file.
  • Import the generated file into Visual Studio.net
This can be accomplished by right-clicking in the solution explorer window in Visual Studio and selecting Add -> Add existing item and then selecting the generated file
  • Add the project dependancies
This can be accomplished by right-clicking the references in the solution explorer and adding both the System.Web.dll and System.Web.Services.dll

 

 

Interested in finding out more?

Call us on 0333 313 7160

Speak to an expert