Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Consume C# WS in C# App
Message
From
16/03/2008 17:37:16
 
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
01302443
Message ID:
01302522
Views:
6
>>>One thing I don't understand is that I have created a simple WS, and I added a web ref
>>>to it in my class calling it 'WS'.
>>>
>>>How do I instantiate it? When I type 'WS' it doesn't appear in intellisense.

>>
>>Hopefully my other reply will help. If not, let's continue the discussion on that part of the thread instead of going off on two different paths.
>>
>>I just wanted to mention that when you add a web reference, VS generates 4 files behind the scenes, which you may not notice if you don't have the "Show All Files" option turned on in your Solution Explorer). One of these files, the reference.cs, creates a class for you and this is what you actually instantiate (as I showed in my code examples).
>
>
>I don't know what I'm doing wrong. I have Show All Files turned on, and the only file I see under
>Web References is MyWS.
>
>My namespace is Marois. When I type 'Marois.MyClass', the intellesense opens. MyWS does not appear in
>the popup menu.
>
>What am I doing wrong here????


I don't know ... you should see 4 files. Try looking in the folder itself with Windows Explorer and see what you see.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform