WCF for chat over internet
-
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.
-
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.
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.
-
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.
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.
-
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.
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.