Marco Scheel
Marco Scheel

Reputation: 180

Hosting a WebService/WCF on Windows Mobile Device?

I'm interessted in writing an application that is running on windows mobile. I've allready a winform application that is hosting an WCF service. I wan't to port the application to windows mobile (6.0) and up. MSDN is hosting an article about WCF on Compact Framework, but it says hosting is not an option yet.

Do i have to write it all by my self over a TCP Listener?

Bye Marco

Upvotes: 2

Views: 1432

Answers (2)

user459130
user459130

Reputation: 11

Couldn't you port the mono HttpListener class to the Compact Framework. At least you'd be starting with a pretty well tested code base and as baseline.

Upvotes: 1

Marc Gravell
Marc Gravell

Reputation: 1064004

Basically, yes; you'd need to do a lot of this yourself using TcpListener. Even HttpListener isn't in Compact Framework, which is a shame (otherwise it would be easy).

There may be pre-canned solutions available, however.

For interest, I have an open-source framework that is nearly there - it has all the serialization / dispatch / etc code, but I haven't yet added raw TcpListener support, which is a shame. But maybe soon.

Upvotes: 2

Related Questions