Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web service

Status
Not open for further replies.

Silvano

Programmer
Jul 16, 2001
386
US
I cannot connect to the web service on the remote machine (on the localhost I have no problem);
when I try to add the web reference I get the download file dialog box;
I have tried to use wsdl.exe but I get the following error:

- The document was not recognized as a known document type (WSDL, XML Schema,
or Discovery document) for the following reason:
- The content type 'application/octet-stream' is not valid for an XML document.


can someone help out here? any help is apriciated.

thx Sylvano
dsylvano@hotmail.com
 
don't link to the vsdisco file rather link straight to the asmx file it works then
 
thx, i know that as I have tried that so many times on the local machine;
I think the problem I have is that for some reason I cannot access the service on the remote machine because of the security settings...
do you know how to take care of that problem? Sylvano
dsylvano@hotmail.com
 
or the problem is the disco?
can you show me how the disco file should look like? (let's assume that the web server does not support XML)

thx Sylvano
dsylvano@hotmail.com
 
A sample disco file looks like this

<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?>
<dynamicDiscovery xmlns=&quot;urn:schemas-dynamicdiscovery:disco.2000-03-17&quot;>
<exclude path=&quot;_vti_cnf&quot; />
<exclude path=&quot;_vti_pvt&quot; />
<exclude path=&quot;_vti_log&quot; />
<exclude path=&quot;_vti_script&quot; />
<exclude path=&quot;_vti_txt&quot; />
<exclude path=&quot;Web References&quot; />
</dynamicDiscovery>


However Webservices are XML based so the web server needs to support it.

If you are thinking to the security settings then you may need to use the IIS enterprise manager to modify them for your application.
Hope this helps
 
the sample you posted is the default for the Dynamic discovery file; in the documentation i've read that we should replace that with the Static Discovery file once the service is moved from the development machine; the default looks somewhat like this:

<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?>
<discovery xmlns=&quot;</discovery>

in any case, my web service works fine if executed on the local machine ( once moved, only thing I get is the download dialog box; I just can't figure out why is this happening... Sylvano
dsylvano@hotmail.com
 
Did you just copy the files over or did you deploy them to the remote machine?

Check out Walkthrough: Deploying a Web Solution in the Visual studio documentation.

Hope this helps
 
Thanks for your response. I found out what my problem is. The host does not have the ASP.NET framwork support. duh...

sorry 'bout that... Sylvano
dsylvano@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top