all groups > dotnet web services > june 2004 >
You're in the

dotnet web services

group:

Hosting a .NET Web Service without IIS


Hosting a .NET Web Service without IIS Gary Webb
6/24/2004 3:00:17 PM
dotnet web services:
Is it possible to host a .NET Web Service (managed code using the .NET
Framework 1.1) without IIS? I remember a website that indicated it was
possible to use a .NET Remoting server to host a Web Service. Could client
code that consumes a Remoting *web service* be used interchangeably to
consume the same interface from a web service hosted in IIS?

Gary

Re: Hosting a .NET Web Service without IIS Allen Anderson
6/24/2004 10:02:18 PM
you can but you'd be writing a lot of custom code. You could also use
remoting with SOAP formatter over http with singlecall (though this
would not give you .asmx web services). Not exactly pure web services
but fairly close and you can self host that. Seems like there is also
a mini web server out there called Cassini that you can use. I'm not
sure it would be a good idea to use that in production though.

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com


On Thu, 24 Jun 2004 15:00:17 -0600, "Gary Webb" <scurito@hotmail.com>
[quoted text, click to view]
Re: Hosting a .NET Web Service without IIS Dino Chiesa [Microsoft]
6/30/2004 1:01:43 AM
yes, it is possible to host ASMX without IIS.
There is the Cassini project, which is a low-feature host for ASP.NET,
written in C#.
It is shared source. Learn more on www.asp.net. It is suited for
development and test, not production.
Cassini was produced to support the "Web Matrix" tool, a easy-to-use, free
dev tool for asp.net. The idea was, you'd be able to use Web Matrix to
build apps, and Cassini to host them diring development.


It is possible to host the ASP.NET runtime in any app. For example some
people host ASP.NET runtime within WinForms apps, so those WinForms apps can
actually act as webservices SERVERS. The WinForms app might also be a
client. Maybe supporting a peer-to-peer webservices architecture.

Here's an article exploring that angle
http://www.microsoft.com/belux/nl/msdn/community/columns/desmet/hostaspnet1.mspx

This is basically what Cassini does.

ps: In the Visual Web Developer 2005 Express edition, there is another host
for asp.net.
You can try out the beta by going here:
http://lab.msdn.microsoft.com/express/vwd/default.aspx

Allen is correct that hosting the SOAP Formatter in remoting is NOT asmx and
will NOT give you the same interface. It will give you SOAP, though, so I
would not say "Not exactly pure web services." It is web services, just a
bit more complex to develop.

-D

[quoted text, click to view]

Re: Hosting a .NET Web Service without IIS David Hoffer
7/3/2004 10:14:29 PM
I have some questions about this thread...

What is an asmx web service? How is this different than a regular web
service?

I am new to Web Services. I want to partition my NET Windows Forms
applications so that the data layer (SQL MSDE) is accessed through a web
service API. My clients are all Forms apps so I have no need for ASP. Some
of my systems are XP Pro (no issue) but some are XP Home and 98SE. The
later do not have IIS. How can I write one code base that works for all
platforms? 90% of systems run all tiers on a single system.

I may be able to require that users that desire a distributed solution use
XP Pro (or Home) as the server but the same code must work on 98SE on a
single box.

What is the best way to do this?

-dh


[quoted text, click to view]

Re: Hosting a .NET Web Service without IIS David Hoffer
7/3/2004 10:19:27 PM
....additional information.

I have no need for Web Service method discovery and publishing. I know the
API I am calling and it is not public for others to call.

-dh

[quoted text, click to view]

Re: Hosting a .NET Web Service without IIS news.microsoft.com
7/9/2004 12:46:26 PM
I have the same issue Any ideas?
[quoted text, click to view]

AddThis Social Bookmark Button