.NET and Web Service

  • Thread starter Thread starter Marcin O
  • Start date Start date
M

Marcin O

Hi all,
I installed first time 'Microsoft Visual Studio .NET 2002' and all is OK
(probably), except once thing. :(
When I have Managed C++ Application and I want to add to project my Web
Service which I earlier created and tested, I choose 'Add Web Reference...'
from Project menu. Dialog box open, where they should be three links, but I
have only two links without 'Web Reference on Local Web Server' - WHY??
When I write down URL of my Web Service to 'Address' field then in window
'Available references:' is mistake:
"The document was not recognized as known document type (WSDL, XML, Shema,
or Discovery document) for the following reason:
-The content type 'application/octet - stream' is not valid for an XML
document"

Greate THX for every help!
Marcin O.
 
The "Add web services" capabilities are much better in 2003. I think the
local server reference was added then.

You should be able to point to the web service by aiming at the asmx like
so:
http://localhost/myWebServiceProject/MyWebService.asmx?WSDL

If you miss the ?WSDL, it is try to actually fire off the service, and the
web reference will fail.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
Back
Top