>>If it is derived from SoapClient then it looks as if you could also do this by setting the Destination property to a suitable instance of EndPointReference (but I haven't tried it :-{ )
>
>If you are making reference to something like this, then I can adjust the URL:
>
>
> ' Add code here to start your service. This method should set things
> ' in motion so your service can do its work.
> Protected Overrides Sub OnStart(ByVal args() As String)
> Dim lcUrl As String = ""
> Dim loBasicHttpBinding As New System.ServiceModel.BasicHttpBinding()
> Dim loEndpointAddress As System.ServiceModel.EndpointAddress
>
> ' Get the Web Service URL
> lcUrl = "https://www.mywebsite.com/MyWebServiceDirectory/MyWebService.asmx"
>
> ' Adjust the URL
> loEndpointAddress = New System.ServiceModel.EndpointAddress(lcUrl)
> oMyClassSoapClient = New MyNamespace.MyClassSoapClient(loBasicHttpBinding, loEndpointAddress)
>
>
>However, the only problem with that is that we are not allow to use https under that protocol.
>
>I get this error:
>The provided URI scheme 'https' is invalid; expected 'http'.
>Parameter name: via
You can't use https when using basicHttpBinding. Try wsHttpBinding instead.
Actually it doesn't have to be *instead* - you can specify multiple end points for the same service.
Note: You can edit the WCF settings by right-clicking the web (or app) .config file and choosing 'Edit WCF Configuration'