Error message "Pass a valid endpoint name to the service client constructor"
Hi all... I'm trying to build a simple project using the USZIP webservice (USZip Web Service).
I have (apparently successfully) added a service reference to that URL, which I named ZipService1.
In my form load I have the following code:
This compiles and runs.
However, I am getting an error on the first Dim line... "An endpoint configuration section for contract service 'ZipService1.USZipSoap' could not be loaded because more than one endpoint configuration for that contract was found."
Any ideas? Any help will be greatly appreciated!
Chandler
Hi all... I'm trying to build a simple project using the USZIP webservice (USZip Web Service).
I have (apparently successfully) added a service reference to that URL, which I named ZipService1.
In my form load I have the following code:
VB.NET:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim myzipservice As zipservice1.USZipSoapClient = New zipservice1.USZipSoapClient()
Dim mycity As Xml.XmlNode = myzipservice.GetInfoByZIP("29720").FirstChild
Dim x As String
x = mycity.FirstChild.InnerText.ToString
End Sub
This compiles and runs.
However, I am getting an error on the first Dim line... "An endpoint configuration section for contract service 'ZipService1.USZipSoap' could not be loaded because more than one endpoint configuration for that contract was found."
Any ideas? Any help will be greatly appreciated!
Chandler