473,503 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I created a Hello World webservice-published it - how to call it?

Hello,

I just created a Hello World webservice in VB2005 (this is my first
webservice ever). I ran it in debug mode and the page that came up said
Hello World and said to change the webservice namespace from tempuri.org to
something else so that the xml file could be created. I did that. Then it
said to make a web reference (say what?) The only web reference I was able
to make was to the local solution: Local Host. Then in the build I
selected publish. The project was copied to a virtual directory on my IIS
webserver (Service1.asmx and related files).

When I tried to call it from Internet Explorer I got an error message. I
typed something like

myVirtualDir/mywebservice/Service1.asmx

This brought up an error page and suggested that I create a custom errors
tag in web.config and set it to off to get a better error message. This is
getting a little complex for me. So what is the correct way to deploy/call
my new webservice?

Thanks,
BC
Jan 15 '08 #1
3 2096
On Jan 15, 11:23 am, BC <B...@discussions.microsoft.comwrote:
Hello,

I just created a Hello World webservice in VB2005 (this is my first
webservice ever). I ran it in debug mode and the page that came up said
Hello World and said to change the webservice namespace from tempuri.org to
something else so that the xml file could be created. I did that. Then it
said to make a web reference (say what?) The only web reference I was able
to make was to the local solution: Local Host. Then in the build I
selected publish. The project was copied to a virtual directory on my IIS
webserver (Service1.asmx and related files).

When I tried to call it from Internet Explorer I got an error message. I
typed something like

myVirtualDir/mywebservice/Service1.asmx

This brought up an error page and suggested that I create a custom errors
tag in web.config and set it to off to get a better error message. This is
getting a little complex for me. So what is the correct way to deploy/call
my new webservice?

Thanks,
BC
Have you set the web service as a .Net app in IIS?

Thanks,

Seth Rowe
Jan 15 '08 #2
The only thing I have done so far is to publish the webservice to IIS. I
look at IIS virtual dirs and there are the files (the .asmx file ...). I
have not done anyting (anything else regarding this webservice) in IIS. How
do I set my webservice as a .Net app in IIS?

"rowe_newsgroups" wrote:
On Jan 15, 11:23 am, BC <B...@discussions.microsoft.comwrote:
Hello,

I just created a Hello World webservice in VB2005 (this is my first
webservice ever). I ran it in debug mode and the page that came up said
Hello World and said to change the webservice namespace from tempuri.org to
something else so that the xml file could be created. I did that. Then it
said to make a web reference (say what?) The only web reference I was able
to make was to the local solution: Local Host. Then in the build I
selected publish. The project was copied to a virtual directory on my IIS
webserver (Service1.asmx and related files).

When I tried to call it from Internet Explorer I got an error message. I
typed something like

myVirtualDir/mywebservice/Service1.asmx

This brought up an error page and suggested that I create a custom errors
tag in web.config and set it to off to get a better error message. This is
getting a little complex for me. So what is the correct way to deploy/call
my new webservice?

Thanks,
BC

Have you set the web service as a .Net app in IIS?

Thanks,

Seth Rowe
Jan 15 '08 #3
On Jan 15, 1:06 pm, BC <B...@discussions.microsoft.comwrote:
The only thing I have done so far is to publish the webservice to IIS. I
look at IIS virtual dirs and there are the files (the .asmx file ...). I
have not done anyting (anything else regarding this webservice) in IIS. How
do I set my webservice as a .Net app in IIS?

"rowe_newsgroups" wrote:
On Jan 15, 11:23 am, BC <B...@discussions.microsoft.comwrote:
Hello,
I just created a Hello World webservice in VB2005 (this is my first
webservice ever). I ran it in debug mode and the page that came up said
Hello World and said to change the webservice namespace from tempuri.org to
something else so that the xml file could be created. I did that. Then it
said to make a web reference (say what?) The only web reference I was able
to make was to the local solution: Local Host. Then in the build I
selected publish. The project was copied to a virtual directory on my IIS
webserver (Service1.asmx and related files).
When I tried to call it from Internet Explorer I got an error message. I
typed something like
myVirtualDir/mywebservice/Service1.asmx
This brought up an error page and suggested that I create a custom errors
tag in web.config and set it to off to get a better error message. This is
getting a little complex for me. So what is the correct way to deploy/call
my new webservice?
Thanks,
BC
Have you set the web service as a .Net app in IIS?
Thanks,
Seth Rowe
I have not done this in a while, and do not currently do any IIS admin
stuff, so my advice could be off.

With that said, I believe you right click on the virtual directory and
go to properties. One of the tabs should be called something like
"ASP.NET", you need to open that tab. One of the drop downs should
have the target framework version, which by default is set to 1.1.
This is the property you need to set to 2.0 (if you wrote this
with .NET 2.0 (VB 2005)).

Thanks,

Seth Rowe [MVP]
Jan 15 '08 #4

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

Similar topics

0
2656
by: Gaz | last post by:
How do I modify the Hello example that comes with the JWSDP-1.1 Tutorial so that it calls a different webservice (ie; an asp.net webservice) instead of the webservice I deploy as part of the Hello...
3
1700
by: The Pritchard | last post by:
I want the user to be able to save the information displayed on a dynamically created page. When I write a script like the following: <SCRIPT> winNew = window.open("","test");...
8
7548
by: vijay | last post by:
Hello, As the subject suggests, I need to print the string in the reverse order. I made the following program: # include<stdio.h> struct llnode { char *info;
4
6829
by: Johann Blake | last post by:
I want the following string to be created: hello "Bob" This is how I've been doing it up till now... string s = "hello\"bob\""; An alternative is...
2
1373
by: Henrik Dahl | last post by:
Hello! I've made a WebService which has the name MyWebService. Now I make a setup project for it. The name of the setup project is MyWebServiceInstaller. The default name for the virtual...
0
902
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
1
5057
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
0
1388
by: Mark | last post by:
Hi, does anyone know of a free world time webservice? I would like to be able to specify a country/ city and get the current date and time TIA Mark
4
6276
by: arnuld | last post by:
i am learning C and doing the exercise 1-1 of K&R2, where K&R ask to remove some parts of programme and experiment with error, so here i go: #include <stdio.h> int main () { printf('hello...
11
2977
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. ...
0
7205
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,...
0
7093
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...
0
7353
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...
1
7011
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...
0
5596
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,...
0
3180
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...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
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...

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.