Hosting a .NET Web Service without IIS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gary Webb

    Hosting a .NET Web Service without IIS

    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


  • Allen Anderson

    #2
    Re: Hosting a .NET Web Service without IIS

    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

    mailto: allen@put my website url here.com


    On Thu, 24 Jun 2004 15:00:17 -0600, "Gary Webb" <scurito@hotmai l.com>
    wrote:
    [color=blue]
    >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
    >[/color]

    Comment

    • Dino Chiesa [Microsoft]

      #3
      Re: Hosting a .NET Web Service without IIS

      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


      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:


      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

      "Allen Anderson" <allen@sparkysy stems.com> wrote in message
      news:kq8nd0hp12 0ksvt2uj3n2tu3k 67qh0bik3@4ax.c om...[color=blue]
      > 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@hotmai l.com>
      > wrote:
      >[color=green]
      > >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[/color][/color]
      client[color=blue][color=green]
      > >code that consumes a Remoting *web service* be used interchangeably to
      > >consume the same interface from a web service hosted in IIS?
      > >
      > >Gary
      > >[/color]
      >[/color]


      Comment

      • David Hoffer

        #4
        Re: Hosting a .NET Web Service without IIS

        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


        "Dino Chiesa [Microsoft]" <dinoch@online. microsoft.com> wrote in message
        news:uToXZ9lXEH A.1684@tk2msftn gp13.phx.gbl...[color=blue]
        > 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[/color]
        can[color=blue]
        > 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
        >[/color]
        http://www.microsoft.com/belux/nl/ms...staspnet1.mspx[color=blue]
        >
        > This is basically what Cassini does.
        >
        > ps: In the Visual Web Developer 2005 Express edition, there is another[/color]
        host[color=blue]
        > 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[/color]
        and[color=blue]
        > 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[/color]
        a[color=blue]
        > bit more complex to develop.
        >
        > -D
        >
        > "Allen Anderson" <allen@sparkysy stems.com> wrote in message
        > news:kq8nd0hp12 0ksvt2uj3n2tu3k 67qh0bik3@4ax.c om...[color=green]
        > > 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@hotmai l.com>
        > > wrote:
        > >[color=darkred]
        > > >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[/color][/color]
        > client[color=green][color=darkred]
        > > >code that consumes a Remoting *web service* be used interchangeably to
        > > >consume the same interface from a web service hosted in IIS?
        > > >
        > > >Gary
        > > >[/color]
        > >[/color]
        >
        >[/color]


        Comment

        • David Hoffer

          #5
          Re: Hosting a .NET Web Service without IIS

          ....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

          "David Hoffer" <dahofferremove .remove@iserv.r emove.net> wrote in message
          news:OPp5fyWYEH A.840@TK2MSFTNG P10.phx.gbl...[color=blue]
          > 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.[/color]
          Some[color=blue]
          > 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
          >
          >
          > "Dino Chiesa [Microsoft]" <dinoch@online. microsoft.com> wrote in message
          > news:uToXZ9lXEH A.1684@tk2msftn gp13.phx.gbl...[color=green]
          > > 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,[/color][/color]
          free[color=blue][color=green]
          > > 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[/color]
          > can[color=green]
          > > 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
          > >[/color]
          >[/color]
          http://www.microsoft.com/belux/nl/ms...staspnet1.mspx[color=blue][color=green]
          > >
          > > This is basically what Cassini does.
          > >
          > > ps: In the Visual Web Developer 2005 Express edition, there is another[/color]
          > host[color=green]
          > > 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[/color]
          > and[color=green]
          > > will NOT give you the same interface. It will give you SOAP, though, so[/color][/color]
          I[color=blue][color=green]
          > > would not say "Not exactly pure web services." It is web services,[/color][/color]
          just[color=blue]
          > a[color=green]
          > > bit more complex to develop.
          > >
          > > -D
          > >
          > > "Allen Anderson" <allen@sparkysy stems.com> wrote in message
          > > news:kq8nd0hp12 0ksvt2uj3n2tu3k 67qh0bik3@4ax.c om...[color=darkred]
          > > > 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@hotmai l.com>
          > > > wrote:
          > > >
          > > > >Is it possible to host a .NET Web Service (managed code using the[/color][/color][/color]
          ..NET[color=blue][color=green][color=darkred]
          > > > >Framework 1.1) without IIS? I remember a website that indicated it[/color][/color][/color]
          was[color=blue][color=green][color=darkred]
          > > > >possible to use a .NET Remoting server to host a Web Service. Could[/color]
          > > client[color=darkred]
          > > > >code that consumes a Remoting *web service* be used interchangeably[/color][/color][/color]
          to[color=blue][color=green][color=darkred]
          > > > >consume the same interface from a web service hosted in IIS?
          > > > >
          > > > >Gary
          > > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • news.microsoft.com

            #6
            Re: Hosting a .NET Web Service without IIS

            I have the same issue Any ideas?
            "David Hoffer" <dahofferremove .remove@iserv.r emove.net> wrote in message
            news:OURaR1WYEH A.1000@TK2MSFTN GP12.phx.gbl...[color=blue]
            > ...additional information.
            >
            > I have no need for Web Service method discovery and publishing. I know[/color]
            the[color=blue]
            > API I am calling and it is not public for others to call.
            >
            > -dh
            >
            > "David Hoffer" <dahofferremove .remove@iserv.r emove.net> wrote in message
            > news:OPp5fyWYEH A.840@TK2MSFTNG P10.phx.gbl...[color=green]
            > > 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.[/color]
            > Some[color=green]
            > > 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[/color][/color]
            use[color=blue][color=green]
            > > 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
            > >
            > >
            > > "Dino Chiesa [Microsoft]" <dinoch@online. microsoft.com> wrote in message
            > > news:uToXZ9lXEH A.1684@tk2msftn gp13.phx.gbl...[color=darkred]
            > > > 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,[/color][/color]
            > free[color=green][color=darkred]
            > > > dev tool for asp.net. The idea was, you'd be able to use Web Matrix[/color][/color][/color]
            to[color=blue][color=green][color=darkred]
            > > > build apps, and Cassini to host them diring development.
            > > >
            > > >
            > > > It is possible to host the ASP.NET runtime in any app. For example[/color][/color][/color]
            some[color=blue][color=green][color=darkred]
            > > > people host ASP.NET runtime within WinForms apps, so those WinForms[/color][/color][/color]
            apps[color=blue][color=green]
            > > can[color=darkred]
            > > > actually act as webservices SERVERS. The WinForms app might also be[/color][/color][/color]
            a[color=blue][color=green][color=darkred]
            > > > client. Maybe supporting a peer-to-peer webservices architecture.
            > > >
            > > > Here's an article exploring that angle
            > > >[/color]
            > >[/color]
            >[/color]
            http://www.microsoft.com/belux/nl/ms...staspnet1.mspx[color=blue][color=green][color=darkred]
            > > >
            > > > This is basically what Cassini does.
            > > >
            > > > ps: In the Visual Web Developer 2005 Express edition, there is[/color][/color][/color]
            another[color=blue][color=green]
            > > host[color=darkred]
            > > > 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[/color][/color][/color]
            asmx[color=blue][color=green]
            > > and[color=darkred]
            > > > will NOT give you the same interface. It will give you SOAP, though,[/color][/color][/color]
            so[color=blue]
            > I[color=green][color=darkred]
            > > > would not say "Not exactly pure web services." It is web services,[/color][/color]
            > just[color=green]
            > > a[color=darkred]
            > > > bit more complex to develop.
            > > >
            > > > -D
            > > >
            > > > "Allen Anderson" <allen@sparkysy stems.com> wrote in message
            > > > news:kq8nd0hp12 0ksvt2uj3n2tu3k 67qh0bik3@4ax.c om...
            > > > > you can but you'd be writing a lot of custom code. You could also[/color][/color][/color]
            use[color=blue][color=green][color=darkred]
            > > > > remoting with SOAP formatter over http with singlecall (though this
            > > > > would not give you .asmx web services). Not exactly pure web[/color][/color][/color]
            services[color=blue][color=green][color=darkred]
            > > > > but fairly close and you can self host that. Seems like there is[/color][/color][/color]
            also[color=blue][color=green][color=darkred]
            > > > > a mini web server out there called Cassini that you can use. I'm[/color][/color][/color]
            not[color=blue][color=green][color=darkred]
            > > > > 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"[/color][/color][/color]
            <scurito@hotmai l.com>[color=blue][color=green][color=darkred]
            > > > > wrote:
            > > > >
            > > > > >Is it possible to host a .NET Web Service (managed code using the[/color][/color]
            > .NET[color=green][color=darkred]
            > > > > >Framework 1.1) without IIS? I remember a website that indicated it[/color][/color]
            > was[color=green][color=darkred]
            > > > > >possible to use a .NET Remoting server to host a Web Service.[/color][/color][/color]
            Could[color=blue][color=green][color=darkred]
            > > > client
            > > > > >code that consumes a Remoting *web service* be used interchangeably[/color][/color]
            > to[color=green][color=darkred]
            > > > > >consume the same interface from a web service hosted in IIS?
            > > > > >
            > > > > >Gary
            > > > > >
            > > > >
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            Working...