I am developing a WPF application. As part of the application, I need to receive some images via another iOS application. And so I’ve written both WCF REST service and the iOS and I am able to send the images to the web service only when I define the service as part of IIS.
What I need to be happening is: When the WPF application is started, the web service will also be started as well, and expose a port number for the iOS device to send images and “wake” the WPF application when started.
Any thoughts?
I am developing a WPF application. As part of the application, I need to
Share
Yes I did. Actually as Tim mentioned, that exactly what I did self-hosting service.
You can take a look at the following video (there are plenty of other, have a look at the links).
http://channel9.msdn.com/shows/Endpoint/endpointtv-Screencast-Building-RESTful-Services-with-WCF/
Here are the complete files in my WCF project: (as mention in the movie), I hope it will get you started..
Just note that it is also important to open a specific port in you machine to enable incoming HTTP traffic. Have a look at WCF ServiceHost access rights.
Eval.cs
IEvalService.cs
EvalService.cs
And last but not least ** App.config**