Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the Web Service URL
Message
From
18/08/2010 14:06:43
 
 
General information
Forum:
ASP.NET
Category:
Web Services
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01477089
Message ID:
01477118
Views:
35
>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
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform