By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,839 Members | 1,635 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,839 IT Pros & Developers. It's quick & easy.

<%@ WebService Language ="Vb" Class="....

P: n/a
cj
I've seen examples of web services written with <%@ WebService
Language ="Vb" Class=".... at the top. Is it not used in VB 2008?
Jan 15 '08 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Hello,
I've seen examples of web services written with * <%@ WebService
Language ="Vb" Class=".... * at the top. *Is it not used in VB 2008?
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,

Marco Mangiante
Jan 15 '08 #2

P: n/a
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!TK2MSF TNGP02.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
Language ="Vb" Class=".... at the top. Is it not used in VB 2008?

Jan 16 '08 #3

P: n/a
cj
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.
Steven Cheng[MSFT] wrote:
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!TK2MSF TNGP02.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
Language ="Vb" Class=".... at the top. Is it not used in VB 2008?
Jan 16 '08 #4

P: n/a
cj
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.
Steven Cheng[MSFT] wrote:
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!TK2MSF TNGP02.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
Language ="Vb" Class=".... at the top. Is it not used in VB 2008?
Jan 16 '08 #5

P: n/a
"cj" <cj@nospam.nospamwrote in message
news:e1**************@TK2MSFTNGP03.phx.gbl...
>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.
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

Jan 16 '08 #6

P: n/a
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: <#f**************@TK2MSFTNGP02.phx.gbl>
<FK**************@TK2MSFTNGHUB02.phx.gbl>
<e1**************@TK2MSFTNGP03.phx.gbl>
Subject: Re: <%@ WebService Language ="Vb" Class="....
Date: Wed, 16 Jan 2008 14:07:50 -0500

"cj" <cj@nospam.nospamwrote in message
news:e1**************@TK2MSFTNGP03.phx.gbl...
>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.
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


Jan 17 '08 #7

P: n/a
cj
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.
Steven Cheng[MSFT] wrote:
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: <#f**************@TK2MSFTNGP02.phx.gbl>
<FK**************@TK2MSFTNGHUB02.phx.gbl>
<e1**************@TK2MSFTNGP03.phx.gbl>
Subject: Re: <%@ WebService Language ="Vb" Class="....
Date: Wed, 16 Jan 2008 14:07:50 -0500

"cj" <cj@nospam.nospamwrote in message
news:e1**************@TK2MSFTNGP03.phx.gbl...
>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.

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" %>

Jan 17 '08 #8

P: n/a
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
such a question came from and what I was thinking.

Jan 19 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.