none
WCF for chat over internet RRS feed

  • Question

  • Hello All,

    I need to write an WCF service which would be mostly accessed from iPhone/Android phone application.

    WCF service should be provide chatting functionality and other required end point methods to the installed phone application.

    Can you please suggest approach and helpfull links for same.

    Thanks in Advance.

     

     

     

    Thursday, January 12, 2012 12:01 PM

Answers

  • Hello, actually iPhone/Android official SDKs don't support SOAP out of box. But there're third party solutions that can make those devices work with SOAP, such as http://brismith66.blogspot.com/2010/05/iphone-development-accesing-soap.html and http://sourceforge.net/projects/ksoap2/files/ksoap2/. But in any case, it is highly recommended to build REST services instead of SOAP services. Both devices support HTTP (REST) out of box. And it's much easier to consume a REST service compared to a SOAP service on devices (because those third party solutions are usually not as simple as Add Service Reference). You can use WCF Web API to build REST services.
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    If you have feedback about forum business, please contact msdnmg@microsoft.com. But please do not ask technical questions in the email.
    • Marked as answer by Yi-Lun Luo Wednesday, January 18, 2012 9:22 AM
    Friday, January 13, 2012 1:36 AM

All replies

  • Both iPhone/Android support SOAP 1.1. You can use WCF basicHttpBinding for that. The only concern is how your application is responsive to the end user. Here responsive means how the system let the user to feel the presense of other users and real time chat experience. This is refrenced sometime as really real time. (Like gmail & facebook webchat allows the user to see the user presense saying "user is typing or idle")

    You have to simulate the Duplex communication using native iPhone/Android SDK. By default HTTP doesnt support duplex. Its oneway. It only responses to client request. It cant directly invoke client method.

    You Can think for WCF REST as another approach which is widly accepted by many technology platform.

     


    Lingaraj Mishra
    Thursday, January 12, 2012 1:07 PM
  • Hello, actually iPhone/Android official SDKs don't support SOAP out of box. But there're third party solutions that can make those devices work with SOAP, such as http://brismith66.blogspot.com/2010/05/iphone-development-accesing-soap.html and http://sourceforge.net/projects/ksoap2/files/ksoap2/. But in any case, it is highly recommended to build REST services instead of SOAP services. Both devices support HTTP (REST) out of box. And it's much easier to consume a REST service compared to a SOAP service on devices (because those third party solutions are usually not as simple as Add Service Reference). You can use WCF Web API to build REST services.
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    If you have feedback about forum business, please contact msdnmg@microsoft.com. But please do not ask technical questions in the email.
    • Marked as answer by Yi-Lun Luo Wednesday, January 18, 2012 9:22 AM
    Friday, January 13, 2012 1:36 AM