Connecting Tech Pros Worldwide Help | Site Map

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

cj
Guest
 
Posts: n/a
#1: Jan 15 '08
I've seen examples of web services written with <%@ WebService
Language ="Vb" Class=".... at the top. Is it not used in VB 2008?
marcomangiante
Guest
 
Posts: n/a
#2: Jan 15 '08

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


Hello,
Quote:
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
Steven Cheng[MSFT]
Guest
 
Posts: n/a
#3: Jan 16 '08

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


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?

cj
Guest
 
Posts: n/a
#4: Jan 16 '08

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


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:
Quote:
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?
>
cj
Guest
 
Posts: n/a
#5: Jan 16 '08

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


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:
Quote:
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?
>
John Saunders [MVP]
Guest
 
Posts: n/a
#6: Jan 16 '08

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


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



Steven Cheng[MSFT]
Guest
 
Posts: n/a
#7: Jan 17 '08

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


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

"cj" <cj@nospam.nospamwrote in message
news:e1yCukFWIHA.4548@TK2MSFTNGP03.phx.gbl...
Quote:
>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
Quote:
>I take it this statement must have been used in .net 2.0 but must no
longer
Quote:
>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
Quote:
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




cj
Guest
 
Posts: n/a
#8: Jan 17 '08

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.


Steven Cheng[MSFT] wrote:
Quote:
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
>
"cj" <cj@nospam.nospamwrote in message
news:e1yCukFWIHA.4548@TK2MSFTNGP03.phx.gbl...
Quote:
>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
Quote:
>I take it this statement must have been used in .net 2.0 but must no
longer
Quote:
>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
Quote:
>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" %>
>
>
Steven Cheng[MSFT]
Guest
 
Posts: n/a
#9: Jan 19 '08

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


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.

Closed Thread