Navigation


Milos Solution Platform (External Blog)

The Milos Solution Platform is .NET's premier platform for building business applications. This blog is meant for developers who use or evaluate Milos. This blog is used to share tidbits of information provided by the Milos developers at EPS. Many of the posts put the spotlight on new features. We generally recommend that all Milos users (developers) at least scan this blog to keep up with the Milos news.

Content Area Footer

Saturday, February 07, 2009
Self-Hosting Basic HTTP WCF Services

Milos provides a real simple way to develop and host (both in runtime as well as debug scenarios) WCF services. This is especially true for binary, TCP/IP based services that are great to use when both the client and the server are .NET applications. Another common scenario is hosting WCF services as HTTP and XML based web services. Especially with Silverlight, basic HTTP based services have gained more importance again. Of course, it is simple to host such services in IIS, and thus we have not provided any special features around that in Milos.

At least not so far. One of the scenarios people have pointed out to us (and frankly, we've run into ourselves too) is a deployment of the same service using multiple bindings. Why deploy one app for TCP/IP and then create a separate, ASP.NET based web app for XML web service support?

We have now created support for Milos aided, self-hosted Basic HTTP services. This is supported both in the ServiceGarden and development host environments. Here is an example of hosting a service in both TCP/IP and Basic HTTP configurations at the same time:

ServiceGarden.AddServiceHostNetTcp(typeof(EventService));
ServiceGarden.AddServiceHostBasicHttp(typeof(EventService));

This example was from a runtime deployed service (likely hosted in a Windows Service). The following example shows the same service hosted in the development environment with support for both protocols.

var host = new TestServiceHost();
host.AddNetTcpService(
typeof(EventService
));
host.AddBasicHttpService(
typeof(EventService));

Accordingly, the ServiceClient class can now also natively open a connection to a Basic HTTP driven service. (Application configuration now supports "BasicHttp" as an additional service binding).

Enjoy!



Posted @ 4:46 PM by Egger, Markus (markus@code-magazine.com) -
Comments (14)




Comments:

RE: Self-Hosting Basic HTTP WCF Services
Tuesday, August 30, 2011 7:21 AM by skechers shape ups for women low price - zhouwen.adsl@gmail.com

cant activity although


RE: Self-Hosting Basic HTTP WCF Services
Monday, September 26, 2011 10:20 PM by borse gucci - a101867833111@163.com

"Borse gucci Kingdom" by the outlet gucci founded in the 1930s. He opened the first store in Florence, with a series of iconic products, including the famous bamboo bag. gucci sito ufficiale from renowned international fashion. Over time, this famous scarpe gucci clothing store has been given a luxurious, sexy, modern quality. It is the ultimate modern luxury of making. In 1970, Borse Gucci Business brand perfume industry began to get involved. Since then, Borse Gucci New Jackie introduced such as: Envy perfume, Eau de Toilette, men's perfume, and later introduced Envy me2 perfume sexy, charismatic perfume.


RE: Self-Hosting Basic HTTP WCF Services
Friday, September 30, 2011 4:32 AM by Mesothelioma - mesothelioma@gmail.com

When client and server both are in .NET applications then TCP/IP based services is good to use.


RE: Self-Hosting Basic HTTP WCF Services
Tuesday, November 08, 2011 6:41 PM by SWF Converter for Mac - plant2013@gmail.com

Preparation: Free download and install Mac SWF Video Converter, launch it.


Sheath/ Column Wedding Dress
Friday, November 18, 2011 2:02 AM by Sheath/ Column Wedding Dress - zhuiyi3693@yahoo.com

As much work as it was doing most of it DIY, it was totally worth it in the end. Plus, havingfg amazing vendors makes it SO much better! We worked hard up until the day of, then they took over for us, so we didn’t have to do a thing except enjoy each other and our friends and family.


RE: Self-Hosting Basic HTTP WCF Services
Friday, November 25, 2011 2:12 AM by hypnosis techniques

I'm a bit worried if this self-hosting program will clog up the site's coding. Are there any errors in the coding you've done?


Roblox Hack
Monday, March 06, 2017 9:01 PM by Get Robux

On the festivals we could get free robux when no website is offering these roblox resources.


RE: Self-Hosting Basic HTTP WCF Services
Monday, June 12, 2017 7:56 AM by Ceasuri Fossil - mihaitavulpeads@gmail.com

Looks great.


RE: Self-Hosting Basic HTTP WCF Services
Monday, June 19, 2017 2:55 AM by Kendama - angelaciofar@gmail.com

I want to be able to self host.


RE: Self-Hosting Basic HTTP WCF Services
Sunday, September 10, 2017 10:23 AM by Interested in Sex - sirking79@gmail.com

Please share more like that.


RE: Self-Hosting Basic HTTP WCF Services
Thursday, October 05, 2017 8:09 AM by smh meaning - prashantprince@mail.com

SMH stands for Shaking My Head. Shocking? Yes, it would be really shocking when someone says the SMH means Shaking My Head


ark survival evolved
Tuesday, November 28, 2017 4:30 AM by ark survival evolved - ahalyakanna@mail.com

ark survival evolved ARK SURVIVAL EVOLVED is an action cum adventure survival video game developed by Studio


RE: Self-Hosting Basic HTTP WCF Services
Tuesday, August 07, 2018 1:39 AM by net worth - sophiehahalala@gmail.com

thank you for sharing the nice post. Keep up sharing. Want more from you.


RE: Self-Hosting Basic HTTP WCF Services
Monday, November 05, 2018 12:59 AM by garage storage racks - naomihunter34@gmail.com

I see in the blog some people listing the lecture of Self-Hosting Basic HTTP WCF Services provided here. I am very happy to visit here in the blog.




Post a Comment:

Comment Title (required)

Your Name (optional)

Your Email (optional)

Your Web Site (optional)

Your Comment (required)

 

 

 

 

 

 

 

Syndication RSS 2.0 RSS 2.0

All My Blogs:
My personal blogs:
Dev and Publishing Dev and Publishing
Travel and Internat. Living Travel and Internat. Living
Other blogs I contribute to:
Milos Blog (US) Milos Blog (US)
VFPConv. Dev Blog (US) VFPConv. Dev Blog (US)
VFPConv. Dev Blog (DE) VFPConv. Dev Blog (DE)

 

Blog Archives
All Blog Posts

2010
    November (1)
2009
    July (2)
    February (2)
    January (1)
2008
    December (1)
    October (3)
    June (1)
    April (3)
    February (1)
    January (1)
2007
    December (1)
    October (2)
    September (2)
    July (1)
    June (2)
    May (4)
    April (6)
    March (8)
    February (3)
    January (2)
2006
    December (2)
    November (2)

 

 

 

This Blog is powered by MilosTM Collaboration Components.