473,597 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
8 3667
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
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.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: <%@ WebService Language ="Vb" Class="....

Lines: 1
Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP02.phx .gbl
Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :2817
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
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.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: <%@ WebService Language ="Vb" Class="....

Lines: 1
Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP02.phx .gbl
Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :2817
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
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.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: <%@ WebService Language ="Vb" Class="....

Lines: 1
Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP02.phx .gbl
Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :2817
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
"cj" <cj@nospam.nosp amwrote in message
news:e1******** ******@TK2MSFTN GP03.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="Ser vice1.asmx.cs"
Class="WebServi ce1.Service1" %>
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Jan 16 '08 #6
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="Ser vice1.asmx.cs"
Class="WebServi ce1.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.saunder s at trizetto.com>
References: <#f************ **@TK2MSFTNGP02 .phx.gbl>
<FK************ **@TK2MSFTNGHUB 02.phx.gbl>
<e1************ **@TK2MSFTNGP03 .phx.gbl>
Subject: Re: <%@ WebService Language ="Vb" Class="....
Date: Wed, 16 Jan 2008 14:07:50 -0500

"cj" <cj@nospam.nosp amwrote in message
news:e1******** ******@TK2MSFTN GP03.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="Ser vice1.asmx.cs"
Class="WebServi ce1.Service1" %>
--
----------------------------------------------------------------------------
----
John Saunders | MVP - Windows Server System - Connected System Developer


Jan 17 '08 #7
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.v b 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="Web Service2.asmx.v b"
Class="TestWebS ervice1.WebServ ice2" %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="Ser vice1.asmx.cs"
Class="WebServi ce1.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.saunder s at trizetto.com>
References: <#f************ **@TK2MSFTNGP02 .phx.gbl>
<FK************ **@TK2MSFTNGHUB 02.phx.gbl>
<e1************ **@TK2MSFTNGP03 .phx.gbl>
Subject: Re: <%@ WebService Language ="Vb" Class="....
Date: Wed, 16 Jan 2008 14:07:50 -0500

"cj" <cj@nospam.nosp amwrote in message
news:e1******** ******@TK2MSFTN GP03.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="Ser vice1.asmx.cs"
Class="WebServi ce1.Service1" %>

Jan 17 '08 #8
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.nosp am>
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.v b 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="Web Service2.asmx.v b"
Class="TestWebS ervice1.WebServ ice2" %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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6816
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
4
9640
by: matatu | last post by:
Hi to all, I have a xml file, a substring like: &lt;a href=&quot;#&quot;&gt;text&lt;/a&gt; which after an xslt trasform is rendered as (using xsl:output method html): &lt;a href="#"&gt;text&lt;/a&gt;
2
3206
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are writing one object in C# which will take the entire table tag contents and renders. Ie., we need to pass "<table>………… <thead>……</thead>. <tr>.<td> <td>..<tr>.<td> <td> </table>" content to
2
10553
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script type="text/javascript"> <!]> </script> <script type="text/javascript"
4
62095
by: higabe | last post by:
Three questions 1) I have a string function that works perfectly but according to W3C.org web site is syntactically flawed because it contains the characters </ in sequence. So how am I supposed to write this function? String.replace(/</g,'&lt;');
34
11015
by: Mark Moore | last post by:
It looks like there's a pretty serious CSS bug in IE6 (v6.0.2800.1106). The HTML below is validated STRICT HTML 4.01 and renders as I would expect in Opera, FrontPage, and Netscape. For some reason, there's an annoying vertical gap between adjacent rules that doesn't go away. This looks like IE6 is incorrectly setting the margin to some arbitrary value. Does anyone know if this is a known bug at MS? If you know of one, post the...
11
13680
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom, there's an "Edit" link. So the page itself looks something like this: <HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY> <!-- TEXT STARTS HERE --> <H1>Hello World!</H1> <P>More stuff here...</P>
10
42951
by: Jon Noring | last post by:
Out of curiosity, may a CDATA section appear within an attribute value with datatype CDATA? And if so, how about other attribute value datatypes which accept the XML markup characters? To me, the XML specification seems a little ambiguous on this, so I defer to the XML authorities. Refer to sections 2.4 and 2.7 (it all hinges on if CDATA attribute values are part of markup or not.) Thanks.
9
5537
by: Eric Lindsay | last post by:
I can't figure how to best display little snippets of shell script using <pre>. I just got around to organising to bulk validate some of my web pages, and one of the problems occurs with Bash shell pieces like this: <pre><code> #!/bin/sh ftp -i -n ftp.server.com&lt; &lt;EOF user username password epsv4 cd /
6
24294
by: tentstitcher | last post by:
Hi all: I have a source xml document with an element of type string. This element contains something like the following: <stringData> &lt;Header&gt; &lt;Body&gt; </stringData> I would like to apply an XSLT and replace all occurances of &lt; with < and &gt; with >.
0
7962
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7884
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8024
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6681
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5844
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
1229
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.