473,653 Members | 2,990 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 2103
On Jan 15, 11:23 am, BC <B...@discussio ns.microsoft.co mwrote:
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_newsgroup s" wrote:
On Jan 15, 11:23 am, BC <B...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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_newsgroup s" wrote:
On Jan 15, 11:23 am, BC <B...@discussio ns.microsoft.co mwrote:
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
2667
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 example? As the asp.net webservice is already deployed all I need to do is generate a stub for this webservice and slot it into the Hello example. Can someone please step through what needs to be done?? The tutorial says it can be done, but...
3
1714
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"); winNew.document.writeln("Hello World!"); winNew.document.close(); winNew.focus();
8
7574
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
6832
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
1377
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 directory created by the setup program is MyWebServiceInstaller but I would like it to be MyWebService. Is there a way to have the setup to install MyWebService having the virtual directory MyWebService instead of MyWebServiceInstaller?
0
911
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 the steps i followed to create a .net client I created a web reference("NetClient") for a webservice running in Axis thru "Add Web Reference", it created succesfully. When I checked the file created by .Net For me when I create the web...
1
5066
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 the steps i followed to create a .net client I created a web reference("NetClient") for a webservice running in Axis thru "Add Web Reference", it created succesfully. When I checked the file created by .Net For me when I create the web...
0
1396
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
6281
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 world\n'); }
11
2995
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
8283
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
8811
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
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7302
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...
0
4147
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...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2707
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
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.