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.
Code:
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