Groups | Blog | Home
all groups > dotnet web services > january 2008 >

dotnet web services : <%@ WebService Language ="Vb" Class="....


marcomangiante
1/15/2008 2:37:13 PM
Hello,

[quoted text, click to view]
8?

sincerely, I don't tried the vb 2008, but I write one with c# 2008 and
have the same directive that I used in c# 2005.

--
Regards,

cj
1/15/2008 4:54:25 PM
I've seen examples of web services written with <%@ WebService
stcheng@online.microsoft.com
1/16/2008 3:56:51 AM
Hi Cj,

The statement you mentioned is just a program directive which used to
indicate the class of the webservice. I don't think it will change between
VS 2005 and VS 2008. Also, VS 2008 support .NET 2.0 developing, therefore,
you should create .NET 2.0 webservice the same way as in VS 2005. Is there
anything else you worry about?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Date: Tue, 15 Jan 2008 16:54:25 -0500
From: cj <cj@nospam.nospam>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: <%@ WebService Language ="Vb" Class="....

Lines: 1
Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP02.phx.gbl
Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.webservices:2817
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I've seen examples of web services written with <%@ WebService
cj
1/16/2008 11:01:32 AM
I hope I'm not annoying you but I'm someone who likes to understand
things and I'm not happy just because something happens to work. From
your answer I take it this statement must have been used in .net 2.0 but
must no longer be used in 3.5 which I believe is the default version
being used when I start a project in VB2008 because that statement isn't
in the code for the HelloWorld web service that is there when I create a
new web service in 2008. Is this correct?

Anyway one of my problems is examples I find on the web differ quite a
bit and there don't seem to be many VB2008 examples yet.


[quoted text, click to view]
cj
1/16/2008 11:02:21 AM
I hope I'm not annoying you but I'm someone who likes to understand
things and I'm not happy just because something happens to work. From
your answer I take it this statement must have been used in .net 2.0 but
must no longer be used in 3.5 which I believe is the default version
being used when I start a project in VB2008 because that statement isn't
in the code for the HelloWorld web service that is there when I create a
new web service in 2008. Is this correct?

Anyway one of my problems is examples I find on the web differ quite a
bit and there don't seem to be many VB2008 examples yet.


[quoted text, click to view]
John Saunders [MVP]
1/16/2008 2:07:50 PM
[quoted text, click to view]

The "<%@ WebService" directive that you refer to belongs in the .ASMX file.
It is still used. Here's the one from a "Hello World" service that I created
in Visual Studio.NET 2008:

<%@ WebService Language="C#" CodeBehind="Service1.asmx.cs"
Class="WebService1.Service1" %>


--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer


stcheng@online.microsoft.com
1/17/2008 3:05:40 AM
Thanks for John's input.

Hi Cj,

My previous reply must mislead you somewhat, however, I never means VS 2008
no longer need that directive below:

<%@ WebService Language="C#" CodeBehind="Service1.asmx.cs"
Class="WebService1.Service1" %>

I never try comparing the generated file between VS 2005 & VS 2008
webservice before. I did it just and the above directive is still used in
asmx file. Also, what I ask in last reply is whether you have anything not
quite understand about this directive or anything else related to this
statement. If so, please feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "John Saunders [MVP]" <john.saunders at trizetto.com>
References: <#fQxyE8VIHA.2268@TK2MSFTNGP02.phx.gbl>
<FKx1XP$VIHA.5204@TK2MSFTNGHUB02.phx.gbl>
<e1yCukFWIHA.4548@TK2MSFTNGP03.phx.gbl>
Subject: Re: <%@ WebService Language ="Vb" Class="....
Date: Wed, 16 Jan 2008 14:07:50 -0500

[quoted text, click to view]

The "<%@ WebService" directive that you refer to belongs in the .ASMX
file.
It is still used. Here's the one from a "Hello World" service that I
created
in Visual Studio.NET 2008:

<%@ WebService Language="C#" CodeBehind="Service1.asmx.cs"
Class="WebService1.Service1" %>


--
----------------------------------------------------------------------------
----
cj
1/17/2008 9:32:53 AM
I just figured this out. While I'm sure it was obvious to you it wasn't
to me. If I double click Service1.asmx in the solution explorer
Service1.asmx.vb opens. I didn't realize there was a Service1.asmx. I
had to right click and say view markup to see that and of course there
was <%@ WebService Language="vb" CodeBehind="WebService2.asmx.vb"
Class="TestWebService1.WebService2" %> in it. I wish someone had told
me that but I'm sure it didn't occur to you I didn't know that.

I do appreciate all the help. I just wanted you to understand where
such a question came from and what I was thinking.


[quoted text, click to view]
stcheng@online.microsoft.com
1/18/2008 3:06:28 AM
Thanks for your followup.

Yes, I know that there must have something you're wondering, however, as
you said, sometimes we may omit something that is obvious to us. Anyway,
glad that you've got the point ;)

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Date: Thu, 17 Jan 2008 09:32:53 -0500
From: cj <cj@nospam.nospam>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: Re: <%@ WebService Language ="Vb" Class="....


I just figured this out. While I'm sure it was obvious to you it wasn't
to me. If I double click Service1.asmx in the solution explorer
Service1.asmx.vb opens. I didn't realize there was a Service1.asmx. I
had to right click and say view markup to see that and of course there
was <%@ WebService Language="vb" CodeBehind="WebService2.asmx.vb"
Class="TestWebService1.WebService2" %> in it. I wish someone had told
me that but I'm sure it didn't occur to you I didn't know that.

I do appreciate all the help. I just wanted you to understand where
AddThis Social Bookmark Button