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. General Programming
  3. WCF and WF
  4. WCF for chat over internet

WCF for chat over internet

Scheduled Pinned Locked Moved WCF and WF
csharpandroidioswcfquestion
4 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.
  • R Offline
    R Offline
    Rahul RK
    wrote on last edited by
    #1

    Hello All, I need to write an WCF service which would be accessed from iPhone/Android phone application. WCF service should provide chat functionality and other required end point methods to the installed phone application. Here I have few queries: 1. Can we implement duplex communication for this, between wcf service and iphone / android application? 2. What would be better solution, hitting a WCF webservice from phone application after some interval of time or putting some callback in phone device?. As i need some chatting kind behaviour in phone where two phone user should chat to each other through the connected WCF service. Can you please suggest approach and helpful links for same. Thanks in Advance.

    J L 2 Replies Last reply
    0
    • R Rahul RK

      Hello All, I need to write an WCF service which would be accessed from iPhone/Android phone application. WCF service should provide chat functionality and other required end point methods to the installed phone application. Here I have few queries: 1. Can we implement duplex communication for this, between wcf service and iphone / android application? 2. What would be better solution, hitting a WCF webservice from phone application after some interval of time or putting some callback in phone device?. As i need some chatting kind behaviour in phone where two phone user should chat to each other through the connected WCF service. Can you please suggest approach and helpful links for same. Thanks in Advance.

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      iPhone doesn't do C#. And I don't think Android does either. So the phone themselves won't be doing "WCF". I believe that is possible via Java with an additional library but that doesn't help with the iPhone. So the real question is about using a phone to communicate with a web server. And yes that is possible. In that case WCF can be used as the protocol of the server. There are other ways though. Other than that it is just basically a chat application. Of which there are many sources. I would probably look for a non-persisted connection example.

      L 1 Reply Last reply
      0
      • J jschell

        iPhone doesn't do C#. And I don't think Android does either. So the phone themselves won't be doing "WCF". I believe that is possible via Java with an additional library but that doesn't help with the iPhone. So the real question is about using a phone to communicate with a web server. And yes that is possible. In that case WCF can be used as the protocol of the server. There are other ways though. Other than that it is just basically a chat application. Of which there are many sources. I would probably look for a non-persisted connection example.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        jschell wrote:

        iPhone doesn't do C#. And I don't think Android does either.

        Thats not entirely true. Mono for Droid[^] Mono for iOS[^] I have not used it so I am not sure about the WCF, but I do not see why it would not be in the libaries as all mobile apps require some servicing.

        Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

        1 Reply Last reply
        0
        • R Rahul RK

          Hello All, I need to write an WCF service which would be accessed from iPhone/Android phone application. WCF service should provide chat functionality and other required end point methods to the installed phone application. Here I have few queries: 1. Can we implement duplex communication for this, between wcf service and iphone / android application? 2. What would be better solution, hitting a WCF webservice from phone application after some interval of time or putting some callback in phone device?. As i need some chatting kind behaviour in phone where two phone user should chat to each other through the connected WCF service. Can you please suggest approach and helpful links for same. Thanks in Advance.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I am not entirely familiar with them but your first step should be to look at these. Mono for Droid[^] Mono for iOS[^] AFAIK, it is the only way to use .Net on such OSes. 1. I don't see why not if using Mono 2. Polling is usually bad practice. I would think some sort of call back or "Push" notification would be used when 'chatting'. Then again this is not my area of expertise.

          Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

          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