Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am developing a system that is designed for multiple forms of interfacing. There is a website, but that is connected through an SDK, as well as an HTTP query interface to access data. But to improve speed and quality, I was thinking of creating a system inside IIS that get any message sent to the server, any response, but still let IIS manage SSL and normal socket connections.

Is there a way to host my project in IIS without ASP or any other kind of script with extra behavioral events?

share|improve this question
    
What are you asking here? It is not clear. –  Oded Dec 14 '11 at 19:53
    
sorry, im not very clear. how to make iis handle my own protocol without it using any http protocol, but use the ssl and other security elements from iis –  cgoddard Dec 14 '11 at 19:54
add comment

2 Answers

up vote 6 down vote accepted

By leveraging the Windows Communications Foundation framework, you can create services over a number of different network protocols. This includes HTTP, HTTPS, MSMQ, and even TCP/IP sockets. In addition to these, it also support Named Pipes for connections between two processes on the same machine.

IIS can host applications developed for WCF, even if they aren't HTTP or HTTPS based.

For more in-depth information about the different protocols that WCF supports, and information about the relative strengths and weaknesses of each, MSDN has good information about this.

While many people have argued that WCF is complicated to configure, it does an excellent job of allowing you to focus on writing code at a fairly high level of abstraction without worrying about the actual transport layer implementation details. I know of a number of projects that have made excellent use of the MSMQ transport in particular in order to enable durable transports that survive intermittent connectivity.

share|improve this answer
    
Cheers guy, been playing around with it a bit, and its great –  cgoddard Dec 16 '11 at 3:20
    
Glad you like it. I think it's cool too. –  Kyle Hodgson Dec 16 '11 at 3:24
    
I've just asked this if you know a lot about WCF, stackoverflow.com/questions/8529393/… –  cgoddard Dec 16 '11 at 3:27
add comment

You could, but there are likely better solutions.

Two that spring to mind are TheServerFramework and the venerable ACE toolkit.

Both of them are general purpose socket/server type frameworks that may serve as more useful jumping off points than IIS would.

If you have control over both sides of the application, as it sounds like you do, then you could also move towards MOM-type solutions like ZeroMQ or any of the various MOM (Message Oriented Middleware) products on the market, depending on how much control you want or need over the payload and its delivery characteristics.

Good Luck.

share|improve this answer
1  
If we're talking about .NET development (which is a probably a reasonable assumption if using IIS) then WCF applications can self-host. –  Murph Dec 14 '11 at 22:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.