Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 13th, 2003, 11:07 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error While Adding Web Reference

Hello Everyone,

I hope someone can help me with this.

I created a Simple Web Service using VB .net and Build the project. I created another project VB .net Windows Applications to use the Web service that I created.

In my Windows Client Applications I clicked on "Add Web Reference". In the Add Web Reference dialog box, I typed the URL of my web service, which is 'http://geeta/AuthorsWebService/AuthorsService.asmx

In the "Available References" window, it brings up my Webservice. When I click on "View Contents", I get the following error.

ERROR MESSAGE:
The document was understood, but it could not be processed.
  - The WSDL document contains links that could not be resolved.
  - There was an error downloading 'http://geeta/AuthorsWebService/AuthorsService.asmx?schema=authors1'.
  - The request failed with the error message:
--

Ignoring the error, I clicked on "Add reference" button. But it also came up with the following error message.

"Unable to download the following files http://geeta/AuthorsWebService/AuthorsService.asmx, 'http://geeta/AuthorsWebService/AuthorsService.asmx?wsdl. Do you wan to skip these files and continue?"

Please help.

Thanks,
Geeta
Reply With Quote
  #2 (permalink)  
Old July 18th, 2003, 09:41 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I get the same error. Don't have an answer yet. Maybe it has something to do with the way the web server security is setup.

JP
Reply With Quote
  #3 (permalink)  
Old July 19th, 2003, 11:57 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I solved my problem. If you are running an ISA server this may be causing your problem. I discovered that I could not Add Web Reference because the server was returning port 81 in my URL string and then creating my .cs (or .vb) source file. When I compiled the source code it would naturally stick the :81 in my web reference dll file. I corrected the problem by not using the Web reference but by manually creating the .cs file, removing the :81 on URL and then recompiling the dll. Reference the new dll in your code.

JP
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Error while adding reference to WebService vijayaramb ASP.NET 2.0 Basics 0 March 7th, 2007 01:28 AM
Chpt 20 - adding a web reference kco1122 BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 12 September 4th, 2006 12:30 PM
Adding a reference to a web service loganscott2000 .NET Web Services 1 April 13th, 2005 09:51 PM
Adding a web reference times out bat21 Pro VB.NET 2002/2003 0 March 3rd, 2005 04:38 AM
Component/Reference Adding Error mythios VS.NET 2002/2003 0 August 28th, 2003 12:45 AM



All times are GMT -4. The time now is 01:16 AM.


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