Hello,
I'm trying to test calling a webservice, I've found several free ones on http://webserviceshare.com, but none of them work for me. Some of them give example calling code in C# which I've translated to VB.NET, they're typically just two to four lines, I don't think I've translated them incorrectly.
On that I've tried is US Zip Validator. I added a Service Reference to http://www.webservicemart.com/uszip.asmx?WSDL, called ZipService.
I then call it like so:
Dim myZipService As ZipService.USZipSoapClient = New ZipService.USZipSoapClient()
Dim myCity As String = myZipService.ValidateZip("27707")
I get the following error on the first line of code:
"An endpoint configuration section for contract 'ZipService.USZipSoap' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name."
A page with information on this web service (including C# source code) is at:
http://webserviceshare.com/Reference/Directories/Phones-Addresses/WsdlService/US-Zip-Validator/ValidateZip.htm
Some of the other ones on webserviceshare.com that I've tried are the AustralianPostCodeSoapClient and the GetUKLocationByCounty, but they all fail with a similar error on the constructor.
Any idea what I'm doing wrong?
-Eric