473,769 Members | 5,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2181
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 "nonstandar d" 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
7113
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 "Russian doll" style of schema design, where the nested type is local and anonymous (not a separate global type). 2. A complex type has nested within it a simple type which is derived through restriction with at least one facet, again nested,...
19
2802
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 create a button that will email the same message (and idealy a word attachment) to whatever address is in view on the form (chances are that I just input it). For further explanation:
17
2101
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 would amount to clicking Edit, Select All, CTRL-C in Internet Explorer to capture some basic time 'n date text from the military site and parse it.
0
1663
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 ServerExplorer..... But the text log from my install shows this: Running a transacted installation.
10
8205
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 obviously change once the program's fully built to actually do something, but for testing, it works). The only code I added to the service is below:
10
2652
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 happy. Now -- how do I take advantage of that second computer to "load-balance" the web site? Will it really give my users a noticable performance increase? How do you accomplish this? I've read many of those MS articles and it's...
4
37233
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 below: E:\Program Files\Microsoft SDKs\Windows\v6.0\Bin>svcutil http://localhost/hello?wsdl Microsoft (R) Service Model Metadata Tool
0
5944
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 service. I am basing the configuration on these articles: http://devlicio.us/blogs/ziemowit_skowronski/archive/2007/07/18/interoperability-between-wcf-and-wse-3-0.aspx http://msdn2.microsoft.com/en-us/library/ms730049.aspx When calling the hello...
9
4312
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 implements one interface the other one implements the other interface.The classes have different imstancecontextMode and different bindingtypes.So how can i include two different services to the service's configuration file .(this issue is not...
0
9586
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
10043
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...
0
9861
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
8869
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
7406
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
6672
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
5298
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...
1
3956
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
3
2814
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.