Page 1 of 3 123 LastLast
Results 1 to 15 of 37

Thread: SMS dll Error

  1. #1
    rayyan
    Guest

    Default SMS dll Error

    Hi,
    This is Rayan el hachem from Elbarid.com company from Lebanon
    I'm a senior developer working in .NET solution (visual basic 2010).
    I made a sample code in vb.net as below:
    '''''''''''''''''''''''''''''
    Public Class SMS

    Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String

    Dim elb As New ElbaridRef.AuthHeader
    Dim cl As New ElbaridRef.ElbaridService
    System.Net.ServicePointManager.Expect100Continue = False
    Dim clSMS As New ElbaridRef.Sms

    ' pTO: The mobile number
    ' pBody: SMS Body
    ' pFrom: The SMS sender ID as will be displayed in mobile SMS
    elb.username = "rayanhachem"
    elb.password = "rayanhachem"
    cl.AuthHeaderValue = elb

    '''''''''''''''''''''''''''
    ' Implement your SMS sending here
    '''''''''''''''''''''''''''
    clSMS.phoneNumber = pTo
    clSMS.notify = "0"
    clSMS.senderId = pFrom
    clSMS.vbApp = "SoapRequest"
    clSMS.vbIdTime = "1" '' MessageID
    clSMS.priority = "1"
    clSMS.sms_type_id = "1" ''if normal
    clSMS.message = pBody
    clSMS.unicodeMessage = "0"
    cl.unicast(clSMS)

    End Function
    End Class
    '''''''''''''''''''''''''''''
    and i saved it as dll file
    i tried to insert this dll in the vertex SMS Central but i an erro has occured ,you can the it in the attached file with the dll

    waiting for you in order to know what is reason oof this error and how i can avoid it

    best regards,Click image for larger version. 

Name:	sms error..jpg 
Views:	159 
Size:	19.8 KB 
ID:	319

  2. #2
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Post Sms api

    Hello,



    You are welcome bro,,, please rename your class to be "SMSSending"


    Code:
    Public Class SMSSending
        Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String
    
            Dim elb As New ElbaridRef.AuthHeader
            Dim cl As New ElbaridRef.ElbaridService
            System.Net.ServicePointManager.Expect100Continue = False
            Dim clSMS As New ElbaridRef.Sms
    
            ' pTO: The mobile number
            ' pBody: SMS Body
            ' pFrom: The SMS sender ID as will be displayed in mobile SMS
            elb.username = "rayanhachem"
            elb.password = "rayanhachem"
            cl.AuthHeaderValue = elb
    
            '''''''''''''''''''''''''''
            ' Implement your SMS sending here
            '''''''''''''''''''''''''''
            clSMS.phoneNumber = pTo
            clSMS.notify = "0"
            clSMS.senderId = pFrom
            clSMS.vbApp = "SoapRequest"
            clSMS.vbIdTime = "1" '' MessageID
            clSMS.priority = "1"
            clSMS.sms_type_id = "1" ''if normal
            clSMS.message = pBody
            clSMS.unicodeMessage = "0"
            cl.unicast(clSMS)
    
        End Function
    
    End Class

  3. #3
    rayyan
    Guest

    Default Sms api

    Thank you hassan ,
    i will test it than i will get back to u the result
    Quote Originally Posted by Hassan-HS View Post
    Hello,



    You are welcome bro,,, please rename your class to be "SMSSending"


    Code:
    Public Class SMSSending
        Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String
    
            Dim elb As New ElbaridRef.AuthHeader
            Dim cl As New ElbaridRef.ElbaridService
            System.Net.ServicePointManager.Expect100Continue = False
            Dim clSMS As New ElbaridRef.Sms
    
            ' pTO: The mobile number
            ' pBody: SMS Body
            ' pFrom: The SMS sender ID as will be displayed in mobile SMS
            elb.username = "rayanhachem"
            elb.password = "rayanhachem"
            cl.AuthHeaderValue = elb
    
            '''''''''''''''''''''''''''
            ' Implement your SMS sending here
            '''''''''''''''''''''''''''
            clSMS.phoneNumber = pTo
            clSMS.notify = "0"
            clSMS.senderId = pFrom
            clSMS.vbApp = "SoapRequest"
            clSMS.vbIdTime = "1" '' MessageID
            clSMS.priority = "1"
            clSMS.sms_type_id = "1" ''if normal
            clSMS.message = pBody
            clSMS.unicodeMessage = "0"
            cl.unicast(clSMS)
    
        End Function
    
    End Class

  4. #4
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,


    You are welcome... i'm waiting your updates....

  5. #5
    rayyan
    Guest

    Default

    Dear hassan ,
    it gave me the same errorClick image for larger version. 

Name:	Untitled..jpg 
Views:	143 
Size:	234.6 KB 
ID:	322
    kindly find attached the error
    maybe there is an error in the configuration

  6. #6
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,
    Please send me the content of this file... C:\Program Files\HS\VertexFX SMS Central\info.txt

  7. #7
    rayyan
    Guest

    Default SMS api

    kindly find below the content of the Dll file:

    Public Class SMSSending

    Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String

    Dim elb As New ElbaridRef.AuthHeader
    Dim cl As New ElbaridRef.ElbaridService
    System.Net.ServicePointManager.Expect100Continue = False
    Dim clSMS As New ElbaridRef.Sms

    ' pTO: The mobile number
    ' pBody: SMS Body
    ' pFrom: The SMS sender ID as will be displayed in mobile SMS
    elb.username = "rayanhachem"
    elb.password = "rayanhachem"
    cl.AuthHeaderValue = elb

    '''''''''''''''''''''''''''
    ' Implement your SMS sending here
    '''''''''''''''''''''''''''
    clSMS.phoneNumber = pTo
    clSMS.notify = "0"
    clSMS.senderId = pFrom
    clSMS.vbApp = "SoapRequest"
    clSMS.vbIdTime = "1" '' MessageID
    clSMS.priority = "1"
    clSMS.sms_type_id = "1" ''if normal
    clSMS.message = pBody
    clSMS.unicodeMessage = "0"
    cl.unicast(clSMS)

    End Function
    End Class

  8. #8
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,

    Please zip this folder and send it to me C:\Program Files\HS\VertexFX SMS Central

  9. #9
    rayyan
    Guest

    Default Sms api

    Quote Originally Posted by Hassan-HS View Post
    Hello,

    Please zip this folder and send it to me C:\Program Files\HS\VertexFX SMS Central
    Dear find a zip file attached to this mail
    Attached Files Attached Files

  10. #10
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,

    Can you send me your team-viewer ID and password to solve the issue?

  11. #11
    rayyan
    Guest

    Default

    Quote Originally Posted by Hassan-HS View Post
    Hello,

    Can you send me your team-viewer ID and password to solve the issue?
    Dear Hassan ,

    Mr ali jazeeiri wil contact you asap in order to give you the criteria

  12. #12
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,


    We are working to solve your case...

  13. #13
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,


    I have upgraded Vetexfx SMS to 10.5 and now it's loads your DLL without any problem.

  14. #14
    rayyan
    Guest

    Default

    hey hassan,
    thank you for your prompt reply
    Did you make a test?
    did you receive an sms?

  15. #15
    rayyan
    Guest

    Default

    Quote Originally Posted by Hassan-HS View Post
    Hello,


    I have upgraded Vetexfx SMS to 10.5 and now it's loads your DLL without any problem.

    Hi hassan,
    kindly find below the content of the dll if is there any incompatibility with your system becoze i tried to send sms but it give me an error :]

    Public Class SMSSending

    Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String

    Dim elb As New ElbaridRef.AuthHeader
    Dim cl As New ElbaridRef.ElbaridService
    System.Net.ServicePointManager.Expect100Continue = False
    Dim clSMS As New ElbaridRef.Sms

    ' pTO: The mobile number
    ' pBody: SMS Body
    ' pFrom: The SMS sender ID as will be displayed in mobile SMS
    elb.username = "rayanhachem"
    elb.password = "rayanhachem"
    cl.AuthHeaderValue = elb

    '''''''''''''''''''''''''''
    ' Implement your SMS sending here
    '''''''''''''''''''''''''''
    clSMS.phoneNumber = pTo
    clSMS.notify = "0"
    clSMS.senderId = pFrom
    clSMS.vbApp = "SoapRequest"
    clSMS.vbIdTime = "1" '' MessageID
    clSMS.priority = "1"
    clSMS.sms_type_id = "1" ''if normal
    clSMS.message = pBody
    clSMS.unicodeMessage = "0"
    cl.unicast(clSMS)

    End Function
    End Class

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error in Update SL/TP
    By Birju in forum VertexFX API/VTL Forum
    Replies: 1
    Last Post: 02-11-2014, 03:26 PM
  2. Error loading DLL in Vertex Bridge LP API Tester
    By AlgoNaute in forum VertexFX API/VTL Forum
    Replies: 11
    Last Post: 04-12-2012, 08:59 AM

Posting Permissions

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