Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. WebService and .asmx file

WebService and .asmx file

Scheduled Pinned Locked Moved Web Development
csharpwcfsalestools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Meech
    wrote on last edited by
    #1

    A number of examples of web services include a .asmx file that typically has a single line

    <%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>

    This is also documented in the .NET SDK for creating a web service. In the case of the examples and the SDK they indicate that if you open the file with a browser, the browser should display information about the web service. I am very unsuccessfully having IE6.0 do that for me. All the browser will do is prompt me for a program to open the file with and when I intruct it to use IE, it simply displays the text of the file. :(( I'm likely interpretating something very wrong here, but at a complete loss of what. Any kind pointers would be appreciated. Thanks. Chris Meech We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler

    M 1 Reply Last reply
    0
    • C Chris Meech

      A number of examples of web services include a .asmx file that typically has a single line

      <%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>

      This is also documented in the .NET SDK for creating a web service. In the case of the examples and the SDK they indicate that if you open the file with a browser, the browser should display information about the web service. I am very unsuccessfully having IE6.0 do that for me. All the browser will do is prompt me for a program to open the file with and when I intruct it to use IE, it simply displays the text of the file. :(( I'm likely interpretating something very wrong here, but at a complete loss of what. Any kind pointers would be appreciated. Thanks. Chris Meech We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler

      M Offline
      M Offline
      mthead
      wrote on last edited by
      #2

      I could be wrong with this, but the asmx file, should be able to give you information when you go to the webservice that is hosted on the IIS. If you just open up the file, it may not work. What you would need is a WSDL file and I think you can generate it from the .NET command prompt. Hope this helps, or I can be totally off.

      C 1 Reply Last reply
      0
      • M mthead

        I could be wrong with this, but the asmx file, should be able to give you information when you go to the webservice that is hosted on the IIS. If you just open up the file, it may not work. What you would need is a WSDL file and I think you can generate it from the .NET command prompt. Hope this helps, or I can be totally off.

        C Offline
        C Offline
        Chris Meech
        wrote on last edited by
        #3

        Actually you are pretty close to what I'm finding as I dig in other areas of the .NET SDK. It's not so much that the documentation is wrong, but rather it just doesn't tell the whole story and what is really unfortunate is that in some cases it's becoming evident it is dependant upon the user working with VS.NET in putting their solution together. The details of deployment are still sketchy to me, but I think I'm getting closer. Thanks for the help. Chris Meech We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups