Web Service Deployment Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joseph Geretz

    Web Service Deployment Question

    Do I need to deploy both my ASMX page plus the DLL onto the web site? If so,
    can you please explain what role both of these deployment units play? To me
    they would seem to be mirror images of each other.

    Thanks for your help.

    - Joe Geretz -


  • Peter K

    #2
    Re: Web Service Deployment Question

    Yes, you need to deploy both. Take a look at the contents of the asmx
    file, it should look something like this.

    <%@ WebService Language="vb" Codebehind="MyC lass.asmx.vb"
    Class="Namespac e.ClassName" %>

    When the client machine makes a request to your webservice, it
    references the URL of the asmx file. IIS is able to map the ".asmx"
    extension to aspnet_isapi.dl l. (Look at the application configuration
    settings in IIS to see this mapping). This is where the .NET runtime
    will kick in and will will recognize that your webservice uses the
    class Namespace.Class Name. It will invoke your DLL file which will run
    the code you wrote.

    That's why you need both.

    Peter Kelcey

    Joseph Geretz wrote:[color=blue]
    > Do I need to deploy both my ASMX page plus the DLL onto the web site? If so,
    > can you please explain what role both of these deployment units play? To me
    > they would seem to be mirror images of each other.
    >
    > Thanks for your help.
    >
    > - Joe Geretz -[/color]

    Comment

    • Joseph Geretz

      #3
      Re: Web Service Deployment Question

      Hi Peter,

      Thanks for your response. OK, so that explains the MyService.asmx file
      (which is served by IIS, triggering the intercept by aspnet_isapi.dl l) and
      the DLL file MyServiceApp.dl l. Why is the deployment of the source code
      (MyService.asmx .vb) necessary?

      Thanks,

      - Joe Geretz -

      "Peter K" <Peter.Kelcey@t elus.com> wrote in message
      news:1126899526 .519431.309460@ g43g2000cwa.goo glegroups.com.. .[color=blue]
      > Yes, you need to deploy both. Take a look at the contents of the asmx
      > file, it should look something like this.
      >
      > <%@ WebService Language="vb" Codebehind="MyC lass.asmx.vb"
      > Class="Namespac e.ClassName" %>
      >
      > When the client machine makes a request to your webservice, it
      > references the URL of the asmx file. IIS is able to map the ".asmx"
      > extension to aspnet_isapi.dl l. (Look at the application configuration
      > settings in IIS to see this mapping). This is where the .NET runtime
      > will kick in and will will recognize that your webservice uses the
      > class Namespace.Class Name. It will invoke your DLL file which will run
      > the code you wrote.
      >
      > That's why you need both.
      >
      > Peter Kelcey
      >
      > Joseph Geretz wrote:[color=green]
      >> Do I need to deploy both my ASMX page plus the DLL onto the web site? If
      >> so,
      >> can you please explain what role both of these deployment units play? To
      >> me
      >> they would seem to be mirror images of each other.
      >>
      >> Thanks for your help.
      >>
      >> - Joe Geretz -[/color]
      >[/color]


      Comment

      • Peter K

        #4
        Re: Web Service Deployment Question

        It's not.

        The .vb file is compiled into the dll prior to your deployment. Only
        the .asmx and .dll files are required. You should never release the .vb
        files as that exposes a huge security vulnerability for your
        application.

        Peter Kelcey

        Joseph Geretz wrote:[color=blue]
        > Hi Peter,
        >
        > Thanks for your response. OK, so that explains the MyService.asmx file
        > (which is served by IIS, triggering the intercept by aspnet_isapi.dl l) and
        > the DLL file MyServiceApp.dl l. Why is the deployment of the source code
        > (MyService.asmx .vb) necessary?
        >
        > Thanks,
        >
        > - Joe Geretz -
        >
        > "Peter K" <Peter.Kelcey@t elus.com> wrote in message
        > news:1126899526 .519431.309460@ g43g2000cwa.goo glegroups.com.. .[color=green]
        > > Yes, you need to deploy both. Take a look at the contents of the asmx
        > > file, it should look something like this.
        > >
        > > <%@ WebService Language="vb" Codebehind="MyC lass.asmx.vb"
        > > Class="Namespac e.ClassName" %>
        > >
        > > When the client machine makes a request to your webservice, it
        > > references the URL of the asmx file. IIS is able to map the ".asmx"
        > > extension to aspnet_isapi.dl l. (Look at the application configuration
        > > settings in IIS to see this mapping). This is where the .NET runtime
        > > will kick in and will will recognize that your webservice uses the
        > > class Namespace.Class Name. It will invoke your DLL file which will run
        > > the code you wrote.
        > >
        > > That's why you need both.
        > >
        > > Peter Kelcey
        > >
        > > Joseph Geretz wrote:[color=darkred]
        > >> Do I need to deploy both my ASMX page plus the DLL onto the web site? If
        > >> so,
        > >> can you please explain what role both of these deployment units play? To
        > >> me
        > >> they would seem to be mirror images of each other.
        > >>
        > >> Thanks for your help.
        > >>
        > >> - Joe Geretz -[/color]
        > >[/color][/color]

        Comment

        • Peter K

          #5
          Re: Web Service Deployment Question

          It's not.

          The .vb file is compiled into the dll prior to your deployment. Only
          the .asmx and .dll files are required. You should never release the .vb
          files as that exposes a huge security vulnerability for your
          application.

          Peter Kelcey

          Joseph Geretz wrote:[color=blue]
          > Hi Peter,
          >
          > Thanks for your response. OK, so that explains the MyService.asmx file
          > (which is served by IIS, triggering the intercept by aspnet_isapi.dl l) and
          > the DLL file MyServiceApp.dl l. Why is the deployment of the source code
          > (MyService.asmx .vb) necessary?
          >
          > Thanks,
          >
          > - Joe Geretz -
          >
          > "Peter K" <Peter.Kelcey@t elus.com> wrote in message
          > news:1126899526 .519431.309460@ g43g2000cwa.goo glegroups.com.. .[color=green]
          > > Yes, you need to deploy both. Take a look at the contents of the asmx
          > > file, it should look something like this.
          > >
          > > <%@ WebService Language="vb" Codebehind="MyC lass.asmx.vb"
          > > Class="Namespac e.ClassName" %>
          > >
          > > When the client machine makes a request to your webservice, it
          > > references the URL of the asmx file. IIS is able to map the ".asmx"
          > > extension to aspnet_isapi.dl l. (Look at the application configuration
          > > settings in IIS to see this mapping). This is where the .NET runtime
          > > will kick in and will will recognize that your webservice uses the
          > > class Namespace.Class Name. It will invoke your DLL file which will run
          > > the code you wrote.
          > >
          > > That's why you need both.
          > >
          > > Peter Kelcey
          > >
          > > Joseph Geretz wrote:[color=darkred]
          > >> Do I need to deploy both my ASMX page plus the DLL onto the web site? If
          > >> so,
          > >> can you please explain what role both of these deployment units play? To
          > >> me
          > >> they would seem to be mirror images of each other.
          > >>
          > >> Thanks for your help.
          > >>
          > >> - Joe Geretz -[/color]
          > >[/color][/color]

          Comment

          Working...