Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
| Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 23rd, 2006, 12:47 AM
YLi YLi is offline
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Why can I use localhost:port only?

I created a web service for testing.After creating it,I debugged it in VS2005, and I can access to my web service successfully using address like: http://localhost:2357/mywebservice/xxx.asm.
But,I changed "local host" to my IP address(172.16.220.54),it could't work. I have tried many times,but failed.
who can tell me why and how to fix it?

thx a lot!

 
Old October 23rd, 2006, 12:59 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If you're talking about the built-in web server, then yes: this development server listens to localhost only. It's meant to be used during development so to increase security it only listens to localhost.

To fix that, install IIS on your machine and use that as a web server.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old October 23rd, 2006, 12:01 PM
YLi YLi is offline
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

what you mean is to publish my web service?
Before I created that web service,I had installed IIS5.1 on my computer.Also,I tried to right click the web service name(project name) in solution Explorer of VS2005,and I choose "Publish web site";after this ,it still could't work .
I am a beginer of web service.So,pls give me some advice.Maybe a step by step instruction of pubulishing web service is the best.
thx so much!

 
Old October 23rd, 2006, 12:58 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If you want people to access your web service from out side your machine, you'll need to run the site under IIS. The development web server that comes with Visual Studio is only meant for development purposes.

Take a look at the "getting started" section of Visual Web Developer on the MSDN site: http://msdn2.microsoft.com/en-us/library/xasa2c3y.aspx

In addition to that, Google for "run web service asp.net iis" or "run web site asp.net iis"

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.




Similar Threads
Thread Thread Starter Forum Replies Last Post
localhost ongmymap ASP.NET 3.5 Basics 5 November 8th, 2008 02:09 PM
do not want to use localhost p2ptolu Classic ASP Databases 1 September 15th, 2005 06:03 PM
localhost problems sdfharkin BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 October 26th, 2004 07:27 PM
Localhost Yee Dreamweaver (all versions) 6 October 21st, 2004 09:21 AM
localhost - hangs Gardener Classic ASP Basics 2 July 14th, 2004 04:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.