2 Adding the Web Service
 
SOAP API > Tutorials > C# > Visual Studio 2008 > Simple Credit Card Checker >
Simple Credit Card Validator - Part 2

Adding the Web Service Reference

5: So far we have a simple form that doesn't really do very much. To allow the solution to access the Validate Web Service we need to tell Visual Studio about the service. You do this by adding a service reference to the project. 

Click the 'Project' menu and then click on'Add Service Reference...".

 

6: This opens the ; Add Service Reference' dialog. In the Address: text box add the URL of the Validate Web Service

If you have a local Validate Server the URL will behttp:// [ip address]/validate/validate.asmx

where [ip address] is the ip address or hostname of the local validate server. 

https://validate.paygateservice.com/validate/validate.asmx?WSDL

7: Press the Go button and Visual Studio will connect to the web service:

8: Press the OK.

9: in the Web Reference Name text box on the right of the screen, change the text to 'validate' and press 'Add Reference'.

10: The Validate web reference will be added to you Visual Studio project allowing you to easily consume Validate service.

 

Now move onto part 3 - Coding the Credit Card Validator

 

 


 


 

 ©Copyright 2023 Paygate Solutions Limited