views:

50

answers:

3

I am create an iPhone app that needs to talk to a Windows C# app. The app will run as either a Service or Form Application.

What would be the best way to accomplish this? Ideally exposing a service-type architecture would be best as I don't need a stateful connection (stateless is fine in this case).

Can a WCF service hosted by my app using a form of TCP binding be consumed by my iPhone? Or can an app host using httpBinding without the aid of IIS or some other web server?

A: 

To run WCF on iPhone you need MonoTouch. Currently, which isn't completely implemented.

I don't think it's a good idea.

Web Service are a better idea in my opinion. You can spawn a web service listener from your console/gui/service Windows C# application.

djechelon
It actually isn't my intent to host a service from my iPhone. I only need my iPhone to communicate with my app, which will host the service. My question is what do I host from my service? I know my iPhone can consume an http-bound WCF, but can it consume a TCP-bound WCF? Or do I need to bind it in some other way?
Chu
Yes, it can. But read that page about the issues you may encounter when using MonoTouch to develop the client, that's all.
djechelon