473,832 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Publishing web service

cj
I'm finally back to trying to write a web service. In VB 2005 I created
a new web site and then ASP.NET Web Service. It opened showing
App_Code/Service.VB with the following code already in it

Imports System.Web
Imports System.Web.Serv ices
Imports System.Web.Serv ices.Protocols

<WebService(Nam espace:="http://tempuri.org/")_
<WebServiceBind ing(ConformsTo: =WsiProfiles.Ba sicProfile1_1)_
<Global.Microso ft.VisualBasic. CompilerService s.DesignerGener ated()_
Public Class Service
Inherits System.Web.Serv ices.WebService

<WebMethod()_
Public Function HelloWorld() As String
Return "Hello World"
End Function

End Class

This is a fine starting point. How do I test this? We have a web
server here but I need some steps to compile and put it on the web
server. I've only written windows apps so far. I can write a test
program to use the web service.

Also in my investigation of web services I thought this code was
supposed to be in service.asmx. The only thing in service.asmx is

<%@ WebService Language="vb" CodeBehind="~/App_Code/Service.vb"
Class="Service" %>

What's up with that?
Oct 16 '07 #1
4 3494
cj,

A webservice is in fact a website, you have to set the IIS for that. Have a
look as it is now on your testing computer and use it on the production
server.

Cor

Oct 16 '07 #2
cj
Our production server is currently running and hosting other pages.
What I need to know is what and how do I move a project from the Visual
Studio IDE to the web server.

Cor Ligthert[MVP] wrote:
cj,

A webservice is in fact a website, you have to set the IIS for that.
Have a look as it is now on your testing computer and use it on the
production server.

Cor
Oct 16 '07 #3
Hi Cj,

For ASP.NET/VS 2005 webservice, if you just want to test or debug it, you
can just run it in VS 2005(through the test webserver) and use other client
project to call it. To call webservice, you should generated the webservice
client proxy first. The "Add WebReference" function in VS 2005 can help you
do it:

#How to: Add and Remove Web References
http://msdn2.microsoft.com/en-us/lib...sx(VS.80).aspx

for deploying webservice project to IIS, it is the same as deploying an
ASP.NET web application. You can use the VS 2005 built-in features such as
"Publish Web Site" or "Copy Web Site". You can find "Copy Web Site" menu in
the "WebSite" menu and find "Publish WEb Site" in the "Build" menu(in case
you're currently in a web project). Here are some MSDN reference mentioend
the web application deployment:

#Web Site Deployment in Visual Web Developer
http://msdn2.microsoft.com/en-us/lib...ae(VS.80).aspx

#Walkthrough: Creating an XML Web Service Using Visual Basic or Visual C#
http://msdn2.microsoft.com/en-us/lib...7x(VS.80).aspx

Or you can also do all the stuffs yourself.

** create the virutal directory(mark it as application and set it to the
proper ASP.NET version)

** copy all the webservice project content into it

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

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


--------------------
>Date: Tue, 16 Oct 2007 13:19:46 -0400
From: cj <cj@nospam.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: Re: Publishing web service

Our production server is currently running and hosting other pages.
What I need to know is what and how do I move a project from the Visual
Studio IDE to the web server.

Cor Ligthert[MVP] wrote:
>cj,

A webservice is in fact a website, you have to set the IIS for that.
Have a look as it is now on your testing computer and use it on the
production server.

Cor
Oct 17 '07 #4
cj
Thanks

Steven Cheng[MSFT] wrote:
Hi Cj,

For ASP.NET/VS 2005 webservice, if you just want to test or debug it, you
can just run it in VS 2005(through the test webserver) and use other client
project to call it. To call webservice, you should generated the webservice
client proxy first. The "Add WebReference" function in VS 2005 can help you
do it:

#How to: Add and Remove Web References
http://msdn2.microsoft.com/en-us/lib...sx(VS.80).aspx

for deploying webservice project to IIS, it is the same as deploying an
ASP.NET web application. You can use the VS 2005 built-in features such as
"Publish Web Site" or "Copy Web Site". You can find "Copy Web Site" menu in
the "WebSite" menu and find "Publish WEb Site" in the "Build" menu(in case
you're currently in a web project). Here are some MSDN reference mentioend
the web application deployment:

#Web Site Deployment in Visual Web Developer
http://msdn2.microsoft.com/en-us/lib...ae(VS.80).aspx

#Walkthrough: Creating an XML Web Service Using Visual Basic or Visual C#
http://msdn2.microsoft.com/en-us/lib...7x(VS.80).aspx

Or you can also do all the stuffs yourself.

** create the virutal directory(mark it as application and set it to the
proper ASP.NET version)

** copy all the webservice project content into it

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

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


--------------------
>Date: Tue, 16 Oct 2007 13:19:46 -0400
From: cj <cj@nospam.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: Re: Publishing web service

Our production server is currently running and hosting other pages.
What I need to know is what and how do I move a project from the Visual
Studio IDE to the web server.

Cor Ligthert[MVP] wrote:
>>cj,

A webservice is in fact a website, you have to set the IIS for that.
Have a look as it is now on your testing computer and use it on the
production server.

Cor
Oct 22 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1089
by: marc.derider | last post by:
I was making a change to a Web service. It was something extremely trivial, such as adding a single parameter to extend the functionality exposed through that method. It got me to thinking however if there was a standard methodology for advertising and of course subscribing to changes. E.g. is there a standard for publishing/notifying changes that are made to a web service. I think that with all the supposed great push towards a more...
2
1264
by: postings | last post by:
Hi I work for a small company that publishes a number of paper based newsletters for companies. It also supplies these newsletters as PDF's and sends weekly updates (e-bulletins as we call them). It also have a related conference business. They are finally deciding to scrap their old websites and update them. They basically need a top portal that shows the news from every publication downwards. They need a website for every newsletter...
3
1659
by: EqDev | last post by:
Hello I have set up a new windows server 2003 standard edition for training (on new software we have developed) and am having problems publishing webs to it from VS 2005. I have a C# Web Service and a test web site. I can publish to other servers but not the one for training. Notice that the message states that publish succeeded, but no files are copied.
9
5240
by: Coward 9 | last post by:
HI, I created the simplest "ASP .NET Web Service" by using VS 2005 and Visual C#( File | New | Web Site). However, when I tried to access the service from IE 7.0 http://www.aztao.org/WebService/Service.asmx (the fie DOES exist which can be verified by typing http://www.aztao.org/WebService/ in address bar only).
11
3011
by: cj | last post by:
Perhaps someone knows how to do this. When I open a new ASP.NET web service application in VS 2008, it opens with a simple Hello World web service already written. I want to see this work. Without changing a thing I built the solution and published it to localhost default web site. How can I test it?????
0
1331
by: Jeova Almeida | last post by:
Hello, I created a simple web service for testing purpose in Visual Studio 2005: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="WSTest" %> using System;
2
2219
by: Niclas | last post by:
Hi, I have developed a WCF service that I am planning to host with a service provider. After spending some time uploading the service and fiddling around with the .svc file and Web.config, I have not managed to get this to work and I am receiving a 404 page when trying access (i have tried dumping a ..htm file in the directory which I can access) I have now gone back to basics and created the defaulf WCF project in VS 2008 which...
3
1701
by: K Viltersten | last post by:
I published the software i've designed but it seems that since it's designed as a service, i'm not able to use the usual publishing tools in VS05. When i try to install the software, it says i need to run installutil.exe by hand and i'd like the installer to do that for me.
1
2267
by: pankajit09 | last post by:
Can you tell me whether license is required for publishing C#.Net Web Service ?
0
9795
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
9642
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
10781
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...
1
10541
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
9320
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
7753
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
6951
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
5624
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3972
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.