2. Run "%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\wsdl.exe" my.wsdl /out:myproxy.cs
If it doesn't help pleaes feel free to let us know.Thanks.
NOTE:If you find my response contains a reference to a third party World Wide Web site, I am providing this information as a convenience to you.Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,Microsoft cannot make any representations regarding the quality,safety, or suitability of any software or information found there.
__________________________________________________
Sincerely,
Young Fang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
But after I reference the local file do I have to change the file reference in the .disco file to the URL reference? (bold below). Keep the filename= property below too?
The .discomap, .disco, .wsdl, and .xsd files are used as input to Wsdl.exe.
Since you have already generated the proxy class with wsdl.exe manually you can simply add proxy class to project and do not need .disco file.
NOTE:If you find my response contains a reference to a third party World Wide Web site, I am providing this information as a convenience to you.Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,Microsoft cannot make any representations regarding the quality,safety, or suitability of any software or information found there.
__________________________________________________
Sincerely,
Young Fang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Yes.You can remove FindCompanySOAPStarter from App_WebReferences since you already created the proxy class.
NOTE:If you find my response contains a reference to a third party World Wide Web site, I am providing this information as a convenience to you.Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,Microsoft cannot make any representations regarding the quality,safety, or suitability of any software or information found there.
__________________________________________________
Sincerely,
Young Fang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Marked as answer by TacRedline on Aug 29, 2007 01:19 PM
Hi Young Fang, 1. Where Do I find my.wsdl file . do i need to create new file and paste in it? 2. i dint get what i have to do here (Run "%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\wsdl.exe" my.wsdl /out:myproxy.cs) please reply me . My Web service
is in server I want to access it in my local system. regards, Dyaman
TacRedline
Member
177 Points
300 Posts
The HTML document does not contain Web service discovery information.
Aug 21, 2007 02:14 PM|LINK
When I try to add a web reference I get the above message and this is what shows:
"FindCompanySOAPStart" Description
Methods
FindCompanyOp ( As , As , As , As )
Is there something wrong with their webservice?
The url is:
http://blahdev:99999/Process/ProcessStarter/FindCompanySOAPStart?wsdl
I think it's in Java if that matters.
Thanks!
Young Fang -...
All-Star
17147 Points
1620 Posts
Re: The HTML document does not contain Web service discovery information.
Aug 24, 2007 02:13 AM|LINK
Hi,
As I understand you can't add webreference and receive above error message.
First you have to make sure this web service does have a discovery file/wsdl or it should have API documentation that is made available to developers.
If it has discovery file/wsdl you can type http://blahdev:99999/Process/ProcessStarter/FindCompanySOAPStart?wsdl in IE to view the result.
If it returns correct xml document you can:
1. Copy the file to my.wsdl
2. Run "%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\wsdl.exe" my.wsdl /out:myproxy.cs
If it doesn't help pleaes feel free to let us know.Thanks.
__________________________________________________
Sincerely,
Young Fang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
TacRedline
Member
177 Points
300 Posts
Re: The HTML document does not contain Web service discovery information.
Aug 24, 2007 08:17 PM|LINK
Cool it works.
But after I reference the local file do I have to change the file reference in the .disco file to the URL reference? (bold below). Keep the filename= property below too?
Thanks!
<?xml version="1.0" encoding="utf-8"?>
<DiscoveryClientResultsFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Results>
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="file:///C:/FindCompanySOAPStarter.wsdl" filename="FindCompanySOAPStarter.wsdl" />
</Results>
</DiscoveryClientResultsFile>
Young Fang -...
All-Star
17147 Points
1620 Posts
Re: The HTML document does not contain Web service discovery information.
Aug 27, 2007 02:31 AM|LINK
Hi,
The .discomap, .disco, .wsdl, and .xsd files are used as input to Wsdl.exe.
Since you have already generated the proxy class with wsdl.exe manually you can simply add proxy class to project and do not need .disco file.
__________________________________________________
Sincerely,
Young Fang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
TacRedline
Member
177 Points
300 Posts
Re: The HTML document does not contain Web service discovery information.
Aug 27, 2007 01:14 PM|LINK
So I remove the FindCompanySOAPStarter.discomap file from the WebReference folder?
Young Fang -...
All-Star
17147 Points
1620 Posts
Re: The HTML document does not contain Web service discovery information.
Aug 29, 2007 03:25 AM|LINK
Hi,
Yes.You can remove FindCompanySOAPStarter from App_WebReferences since you already created the proxy class.
__________________________________________________
Sincerely,
Young Fang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Dyamanagowda
Member
5 Points
9 Posts
Re: The HTML document does not contain Web service discovery information.
Feb 05, 2009 11:46 AM|LINK
okeefe14
Member
2 Points
1 Post
Re: The HTML document does not contain Web service discovery information.
May 08, 2010 05:51 PM|LINK
This was not quite my scenario but here is what fixed for me....
My AuthorizationService.svc was in <MyApp>.Web and the webconfig file for that app had Forms Based Authentication....
<
<
<
</
</
</
authentication mode="Forms">forms name=".ASPXAUTH" loginUrl="Login.aspx" protection="All" timeout="20">credentials passwordFormat="Clear">credentials>forms>authentication>Changed it to:
<
<!--
<credentials passwordFormat="Clear">
</credentials>
</forms>
</
authentication mode="Windows"><forms name=".ASPXAUTH" loginUrl="Login.aspx" protection="All" timeout="20">-->authentication>For me the lesson was that i should have tried to navigate to the service on the local machine like this:
http://localhost:1452/AuthorizationService.svc because I once I did, I got the access denied message and understood what was wrong.
I needed to add a method to the webservice, once i updated it, I returned to forms based auth.
tcatu
Member
37 Points
44 Posts
Re: The HTML document does not contain Web service discovery information.
Jun 09, 2010 03:00 PM|LINK
hi
If it has discovery file/wsdl you can type http://blahdev:99999/Process/ProcessStarter/FindCompanySOAPStart?wsdl in IE to view the result.
If it returns correct xml document you can:
1. Copy the file to my.wsdl
2. Run "%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\wsdl.exe" my.wsdl /out:myproxy.cs
it doesnt retun correct xml do you have any idea ?
thanks