Hi Arjan,
are you connecting to a WCF web service or to an ASP .NET asmx web service? I successfully connected to both using the standard way. For example to connect to my WCF service I add the reference and use:
Imports System.ServiceModel
Imports MyWCFServiceReference
Imports System.Windows.Data
Private Sub CallWebService(Parameters)
Dim MyEndpointAddress As New EndpointAddress("WebServiceURLGoesHere")
Dim MyBinding As New BasicHttpBinding 'Or whatever you need
Dim proxy As New MyWCFServiceReference.MyWCFServiceClient(MyBinding, MyEndpointAddress)
AddHandler proxy.DoWorkCompleted, AddressOf DoWork_Completed
proxy.DoWorkAsync(Parameters)
End Sub
and
Protected Sub DoWork_Completed(ByVal sender As Object, ByVal e As MyWCFServiceReference.DoWorkCompletedEventArgs)
' get results form e.Result
End Sub
Remember that accessing cross domain services requires the cross domain policy xml file to allow this. Let me know if you need the asmx code or if you need further help.
Best regards,
Dario Rossa