all groups > dotnet web services > march 2006 >
You're in the

dotnet web services

group:

Add Web Reference


Add Web Reference manika02
3/10/2006 2:03:07 PM
dotnet web services: I am unable to add web reference in Visual Studio 2003. I get the following
error:

"Unable to download following files from
http://mysite.com/webservice.asmx?wsdl
Do you want to skip these files and continue?"

Also when i type the URL http://mysite.com/webservice.asmx?wsdl andt hen
click Go in the Add Web Reference dialog box, I get the following error.


"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://mysite.com/webservice.asmx?schema=DataSet1"

I am stuck here for a long time now...Pls help!!!




Re: Add Web Reference manika02
3/10/2006 2:40:20 PM
Scott the answers to your questions are as below:
Did you create the wsdl yourself, or did vs.net create it?
-VS.Net created the wsdl for me.

Were you able to test the web service project directly and call the
webmethods and have them work?
-Yes, I have already tested my webmethods and they work fine



[quoted text, click to view]
Re: Add Web Reference Scott M.
3/10/2006 5:30:31 PM
Did you create the wsdl yourself, or did vs.net create it? Were you able to
test the web service project directly and call the webmethods and have them
work?


[quoted text, click to view]

Re: Add Web Reference Matt Dunn
3/18/2006 10:56:48 PM
Greetings Manika,

If you load the WSDL document in IE, at the bottom of the WSDL file,
does the location attribute of the soap:address element for the web
service match the URL entered into IE? Specifically, are there any
extra tokens appended to the server name?

The following are the elements I'm referring to:

<wsdl:service name="MyService">
<documentation/>
<wsdl:port name="MyServiceSoap" binding="tns:MyServiceSoap">
<soap:address
location="http://localhost//MyWebServices/MyService.asmx"/>
</wsdl:port>
</wsdl:service>

I have seen this error occur when the web server hosting the web
services is accessed through ISA server, and the administrators have
chosen to use host headers (with a slightly different server name) to
resolve the HTTP requests to the physical web server.

As a workaround, you should still be able to use the command line
wsdl.exe tool to create/update the web reference, as follows:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfWebServicesDescriptionLanguageToolWsdlexe.asp

HTH.

Cheers,
Matt
AddThis Social Bookmark Button