473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Simple Web service configuration

Howdy folks. I am trying to build a web service using the following
configuration:

I have Windows 2003 Server running in VMware. I have IIS set up on it.
I installed the .NET 2.0 package on the server as well. The VMWare
server is called W2K3.

I created 2 web sites on the server. One called ResetPool, the other
called TestReset. The ResetPool site is the target of a little web
service that will force an app pool to recycle. The TestReset site is
intended as a client for the service. I assign ResetPool a port of
8001 and TestReset a port of 8002.

I have configured both web sites with Server extentions and also both
to use .NET 2.0

So to get started, I just want to test my configuration so I use some
simple projects to test with...

Now, when I go into Visual Studio, I want to create my web service.
Here is what I have done (that does not work):

I create just a default web service that has 1 method that returns
Hello World. I define a local folder for this project. I build it.
Then I tell it to publish it out to my Win 2003 server website. This
all seems to work fine from what I can tell. It talks to the server
and builds a bunch of files and folders out there.

OK, so far so good - Or so I think...Now I create a new project for the
client. I tell it a local folder on my machine. Then I go to add a
web reference to that project and it allows me to look on my local
machine, the currend project or a UDDI server. Optionally, I can
specify a URL.

So, I specify the URL of the service that I defined above:

http://Win2k3:8001/ResetPool

And it gives me an error:

There was an error downloading 'http://win2k3:8001/ResetPool/'.

The request failed with the error message:

There was an error downloading 'http://win2k3:8001/ResetPool/'.

The request failed with HTTP status 403: Forbidden.

And it indicates that I need to log in to the server. Now my local ID
is defined to the admin group on that server. So I am not really sure
what to think here.

Can anyone shed some light for me?

Thanks a ton!

Nov 4 '06 #1
2 2158
Heddy,
http://Win2k3:8001/ResetPool needs to be an IIS Application on the server.
You should be able to request the
http://Win2k3:8001/ResetPool/serviceXXX.asmx "Page" in your browser and see
the service description page (if you have that enabled) .

Additionally, if you want to run it on port 8001 then your webservice proxy
needs to
look for it on that port, not the standard http port of "80".

You are attempting to set up a very much "nonstandard" configuration for you
service and your client. If you know what you are doing, that's fine.
However, if you are just starting out, you are likely making things much more
complex than they need to be.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.comhttp://msd...l&sdgloc=en-US
UnBlog:
http://petesbloggerama.blogspot.com


"heddy" wrote:
Howdy folks. I am trying to build a web service using the following
configuration:

I have Windows 2003 Server running in VMware. I have IIS set up on it.
I installed the .NET 2.0 package on the server as well. The VMWare
server is called W2K3.

I created 2 web sites on the server. One called ResetPool, the other
called TestReset. The ResetPool site is the target of a little web
service that will force an app pool to recycle. The TestReset site is
intended as a client for the service. I assign ResetPool a port of
8001 and TestReset a port of 8002.

I have configured both web sites with Server extentions and also both
to use .NET 2.0

So to get started, I just want to test my configuration so I use some
simple projects to test with...

Now, when I go into Visual Studio, I want to create my web service.
Here is what I have done (that does not work):

I create just a default web service that has 1 method that returns
Hello World. I define a local folder for this project. I build it.
Then I tell it to publish it out to my Win 2003 server website. This
all seems to work fine from what I can tell. It talks to the server
and builds a bunch of files and folders out there.

OK, so far so good - Or so I think...Now I create a new project for the
client. I tell it a local folder on my machine. Then I go to add a
web reference to that project and it allows me to look on my local
machine, the currend project or a UDDI server. Optionally, I can
specify a URL.

So, I specify the URL of the service that I defined above:

http://Win2k3:8001/ResetPool

And it gives me an error:

There was an error downloading 'http://win2k3:8001/ResetPool/'.

The request failed with the error message:

There was an error downloading 'http://win2k3:8001/ResetPool/'.

The request failed with HTTP status 403: Forbidden.

And it indicates that I need to log in to the server. Now my local ID
is defined to the admin group on that server. So I am not really sure
what to think here.

Can anyone shed some light for me?

Thanks a ton!

Nov 4 '06 #2
Hi Peter. Basically, I need to test a web service that resets a given
application pool in IIS. If you have a better way to do this (since
the XP IIS is 5.1 and will not suffice - I need to test it against a
real IIS6 box), I am all ears!

Nov 4 '06 #3

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

Similar topics

0
by: mjcsfo | last post by:
I can't seem to find a reference nor any helpful threads on this topic. I've gotten the following error in two circumstances: 1. A complex type has nested within it another complex type, in the...
19
by: Bill | last post by:
I have searched through the posts for a question like mine but have only found much more complicated responses. On single record view of a form I have an email address field. I merely want to...
17
by: MLH | last post by:
After running the following code snippet... MyURL = "http://tycho.usno.navy.mil/what.html" msXML.Open "GET", MyURL, False msXML.send I would like to execute code to perform essentially what...
0
by: poi | last post by:
Running the code below, I get the error Cannot start service from the command line opr debugger. A Windows Service must first be installed (using installutil.exe) and then started with the...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
4
by: Dylan | last post by:
Hello, I was trying to do a WCF tutorial (http://wcf.netfx3.com/content/ BuildingHelloWorld.aspx). I need to get the meta data from my service usin svcutil.exe why is not working? Please see...
0
by: =?Utf-8?B?UmljaGFyZCBDb2xsZXR0ZQ==?= | last post by:
My goal is to connect a WSE 3.0 client to a WCF asp.net hosted service, utilizing MTOM encoding and if at all possible, streamedRequest transfer mode. I am starting with a basic Hello World...
9
by: Hakan Fatih YILDIRIM | last post by:
Hi all, Ý am working aboot WCF. and i have some problems. I created 2 interfaces containing attribute at the top of them.and i want to create two classes implementing these interfaces.One class...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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,...
0
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...
0
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...

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.