Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting from Web Reference to MSSOAP
Message
De
15/01/2004 15:59:35
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Titre:
Converting from Web Reference to MSSOAP
Divers
Thread ID:
00867278
Message ID:
00867278
Vues:
78
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform