Consulting

Results 1 to 3 of 3

Thread: Convert SOAP calls code to XMLHTTP library

  1. #1

    Convert SOAP calls code to XMLHTTP library

    Hello,
    MS Access 2010 is not supporting SOAP Client call. Can anyone change the following SOAP Client code to XMLHTTP library please.


    Dim client As New SoapClient
    Dim SmsType As String
    
    
    'Check balance example
    Private Sub checkBalanceBtn_Click()
    client.mssoapinit (http :// api2 . onnorokomsms . com / SendSms . asmx ? wsdl )
    Dim balance As Variant
    balance = client.GetBalance("your username", "your password")
    statusLbl.Caption = "Connected. Your Balance is " & balance
    End Sub
    
    
    'Bulk SMS Sending example
    Private Sub sendBulkSms_Click()
    Dim rsp As Variant
    rsp = client.OneToMany(UserName.Text, Password.Text, smsText.Text, mobileNumbers.Text, SmsType, maskNameTxt.Text, "")
    statusLbl.Caption = rsp
    End Sub
    
    
    'Single SMS Sending example
    Private Sub sendSingleSms_Click()
    Dim rsp As Variant
    rsp = client.OneToOne(UserName.Text, Password.Text, mobileNumbers.Text, smsText.Text, SmsType, maskNameTxt.Text, "")
    statusLbl.Caption = rsp
    End Sub
    Regards
    Abu Hafsa

  2. #2
    VBAX Newbie
    Joined
    Nov 2016
    Posts
    2
    Location
    Usualy you have to add references for that to work.

    Its in tools / references. I believe you need Microsoft XML, v6.0

  3. #3
    Quote Originally Posted by hafsarabic View Post
    Hello,
    MS Access 2010 is not supporting SOAP Client call. Can anyone change the following SOAP Client code to XMLHTTP library please.
    Your code looks like it is using the Microsoft Soap Toolkit, which is indeed no longer supported and longer available for download.
    The Soap Toolkit generates wrapper classes (I assume your SoapClient class is one of those), which encapsulate the actual SOAP call. These classes are what you need to adapt or replace. The calling code you showed here is of minor importance.
    Learn VBA from the ground up with my VBA Online Courses.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •