views:

41

answers:

2

I created a web service reference in VS 2008. Should I be seeing some sort of generated .cs somewhere?

Also I created a custom class and am trying to create an instance of this Proxy class but it doesn't know what that object is yet when I try.

A: 

If you create a web service in Visual Studio it will create a file with the extension type *.asmx. If you open this file it will so you where the *.cs file resides. In a Website Visual studio will automatically put it in the AppCode folder.

eg.

<%@ WebService Language="C#" CodeBehind="~/App_Code/suburbWebservice.cs" Class="suburbWebservice" %>

Hope this helps.

macou
thanks but I get no .cs files in my Appcode folder.
CoffeeAddict
A: 

Click show all files in your project and you will see under your service reference "reference.cs"

Gary
why would it be hidden in the first place?
CoffeeAddict
Because it is generated by a tool and not meant to be edited.
Gary