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 AVlidate Web Service we need to tell Visual Studio about the service. You do this by adding a web reference to the project.
Click the 'Project' menu and then click on'Add Web Reference...".
6: This opens the ; Add Web Reference' dialog. In the URL: 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: in the Web Reference Name text box on the right of the screen, change the text to 'validate' and press 'Add Reference'.
9: 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 |