Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to recieve sms in c#

how to recieve sms in c#

Scheduled Pinned Locked Moved ASP.NET
csharptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shabi uz zaman
    wrote on last edited by
    #1

    i m developing web application in which i m sending and receiving sms through mobile connected with a cable. but sms is not receiving.

    C K 2 Replies Last reply
    0
    • S shabi uz zaman

      i m developing web application in which i m sending and receiving sms through mobile connected with a cable. but sms is not receiving.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You've asked this three times now. You need to talk to the people who provide you with an API for SMS sending/recieving. I don't really see how you can connect to a mobile with a cable, and then run it as a web app, given as your code will run on the server, and the phone will be on the client end.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • S shabi uz zaman

        i m developing web application in which i m sending and receiving sms through mobile connected with a cable. but sms is not receiving.

        K Offline
        K Offline
        kimo code
        wrote on last edited by
        #3

        my dear you want to recive sms through internet so u can use some protocoles like http,shttp,or smpp in http you can connect to the smsc (mobile company)and they send to u they message in query string and from your side you can catch them by httplistner and her is some code to help u using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Net; /// /// Summary description for HttpServer /// public class HttpServer { /* HttpListener This class cannot be inherited. Note: This class is new in the .NET Framework version 2.0. we can find it in Namespace: System.Net An HttpListener can require client authentication. You can either specify a particular scheme to use for authentication or you can specify a delegate that determines the scheme to use. You must require some form of authentication to obtain information about the client's identity. */ private HttpListener Listener; public HttpServer() { // Define Listner in constractor to give it the default value Listener = new HttpListener(); // Prefixes take the host which handling all requests or the target machine which recive all requests // prefix take string including url,ip,*,+ and port no.and it must closed with / as u see in the code Listener.Prefixes.Add("http://127.0.0.1:9400/"); // opening the listener to begin listen Listener.Start(); /* * senario "synchronous model" * ---------*********--------- The synchronous model is appropriate if your application should block while waiting for a client request and if you want to process only one request at a time. Using the synchronous model call the ***GetContext method*** which waits for a client to send a request. The method returns an HttpListenerContext object to you for processing when one occurs. ---------C0de...... *wait for incoming request and returns when one is recived Listener.GetContext(); HttpListenerContext context = Listener.GetContext(); HttpListenerRequest request = context.Request; // Obtain a response object. HttpListenerResponse response = context.Response; // Construct a response. string responseString = " Hello world!"; byte[] buffer = Syst

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups