PDA

View Full Version : Convert SOAP calls code to XMLHTTP library



hafsarabic
08-04-2017, 05:15 AM
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

Juice
06-22-2022, 09:59 AM
Usualy you have to add references for that to work.

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

PhilS
06-23-2022, 04:24 AM
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.