WebService and .asmx file
-
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
-
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
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.
-
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.
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