Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting from Web Reference to MSSOAP
Message
From
15/01/2004 15:59:35
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web Services
Title:
Converting from Web Reference to MSSOAP
Miscellaneous
Thread ID:
00867278
Message ID:
00867278
Views:
77
Ok, this code is working:
      Dim Erreur As String
      Dim ID As String
      Dim MotDePasse As String
      Dim loWebService As WebServiceClient.WebServiceMethod = New WebServiceClient.WebServiceMethod
      loWebService.CookieContainer = New System.Net.CookieContainer
      loWebService.Credentials = New Net.NetworkCredential("username", "password")
      loWebService.MyMethod(Erreur, "00000", "username", "password", ID, MotDePasse)
      MessageBox.Show(Erreur)
      MessageBox.Show(ID)
      MessageBox.Show(MotDePasse)
However, I am trying to execute the same code but with a MSSOAP approach. So, I tried this:
      Dim Erreur As String
      Dim ID As String
      Dim MotDePasse As String
      Dim loWebService As Object
      loWebService = CreateObject("MSSOAP.SoapClient")
      loWebService.MSSoapInit("https://username:password@www.domain.com/WebService.asmx?wsdl")
      loWebService.MyMethod(Erreur, "00000", "username", "password", ID, MotDePasse)
      MessageBox.Show(Erreur)
      MessageBox.Show(ID)
      MessageBox.Show(MotDePasse)
However, when I run this approach, I have an exception on the server. I need to know what I am missing to have this approach to work as well.
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
Next
Reply
Map
View

Click here to load this message in the networking platform