View Complete Post
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:
I created 2 projects in my solution:
Both projects were created in 3.5 framework and in Visual Studio 2008 Beta 2.
I added web service reference to Class library project. When it asked for namespace I typed "CurrencyProxy". Projects build ok, but when I run web app, Class library throws an error: Could not find default endpoint element that references contract 'CurrencyProxy.CurrencyServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract
could be found in the client element.
I believe it has something to do with app.config in Class library project. Here is part from app.config:
<system.serviceModel> <bindings> <basicHttpBinding> <binding name="CurrencyServiceSoap" closeTimeout=
How can i check that which Endpoint is calling WCF Service.