Comprehensive, categorized, searchable collection of links to ASP & ASP.NET resources...http://www.surfhighway.com/
Our Directory

Applications
ASP.NET Directory
Books & Media
Community
Components
Other ASP Sites
Reference Material
Software & Server
Tutorials & Code
Web Site Hosts

Expand Directory...
Personlise Results...

Newsgroups

Participate in over
100 ASP & ASP.NET related newsgroups right here @ Fuzzy Software...

.NET Framework
- .net.faqs
- .net.framework
- .net.general
- .net.setup
- .net.scripting
- .net.xml

Web Services
- aspnet.webservices
- msdn.soaptoolkit
- msdn.webservices

SQL Server
- sqlserver.setup
- sqlserver.prog...
- sqlserver.tools

Classic ASP
- asp.db
- asp.general
- asp.components

Scripting
- scripting.jscript
- scripting.remote
- scripting.vbscript
- scripting.wsh

All newsgroups...

ASP Built-in
Objects Reference


Application Object
ObjectContext Object
Request Object
Response Object
Server Object
Session Object

Personalise Fuzzy
Make Homepage
Link To Fuzzy
Bookmark This Page

Add our directory to your site in less than
2 minutes...














Whats New!


From: "Joe Baric"
Subject: dummy's guide to making a web service
Date: Wed, 19 Jun 2002 07:27:48 -0700

Hi,

If this is the wrong forum please forgive me, (and point
me to the right one)

I have created a simple web service with VC++ .Net.. now,
if I access the service with html.. i.e.
http://localhost/Foo/Foo.asmx - works like a champ.

But, when I try to use the web service from code I am
having problems.

So, I try to add a web reference in VC++ .NET, Now, here
is the crux
(I think).. So, there are three ways to add a web
reference.
1 - check with the Microsoft UDDI service by clicking on
the UDDI link

2 -- click web references on Local web serve to display
locally registered services.. (I try that with no luck)
The return xml in the other pane is pretty generic,
saying that there is nothing published.

3 -- type the path to the .vsdisco file..
When I use http://localhost/Default.vsdisco I get
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.

here is the Default.vsdisco
<?xml version="1.0" ?>
- <disco:discovery
xmlns:disco="http://schemas.xmlsoap.org/disco"
xmlns:scl="http://schemas.xmlsoap.org/disco/scl">
<scl:contractRef
ref="http://localhost/Converter/Converter.asmx?WSDL" />
</disco:discovery>

If I bring up the WSDL file in the browser it looks all
right.

Now, I have checked the only think I can think of -- i.e.
IIS is running.. is there something else I have to do to
get a webservice to run?

thanks for any help.
Joe Baric


.


Post a follow up to this message...

From: "salman"
Subject: Re: dummy's guide to making a web service
Date: Mon, 8 Jul 2002 05:30:41 -0700

Hi,
I havent got the exact remedy to ur perplexation, but i
have had came across with same problem. And the remedy i
found , rather a trick, that vsdisco is for dynamic
discovery . Try using a disco file which is for static
discovery, meainng u specify what you want to be
discovered. I actualy took a simple Disco file from some
tutorial and tried to make my own by supplying my methods,
and it worked.

Hope this all helps u somehow sometime.
Thanx,
Salman
>-----Original Message-----
>Marc,
>Thanks for responding.
>Ok,
>
>that worked..
>however, ok as a follow up..
>1 -- why does all the doc say to use the vsdisco files to
>(is publish or broadcast the right word?) search for a
>reference?
>
>2 -- Also, how do I make it so the .vsdisco file is used.
>I tried both schemas.xmlsoap.org/disco/ and the
>xmlns:disco="urn:schemas-dynamic:disco." schemas
>to do this and was not successful. Obviously there is
>some piece I am missing
>
>Joe B
>
>>-----Original Message-----
>>Try 3-- type the path
>>but use http://localhost/Foo/Foo.asmx
>>
>>It should work
>>
>>Marc M
>>MCP, MCSD
>>
>>
>>On 06/19/2002 09:27 Joe Baric wrote:
>>> Hi,
>>>
>>> If this is the wrong forum please forgive me, (and
>point
>>> me to the right one)
>>>
>>> I have created a simple web service with VC++ .Net..
>now,
>>> if I access the service with html.. i.e.
>>> http://localhost/Foo/Foo.asmx - works like a champ.
>>>
>>> But, when I try to use the web service from code I am
>>> having problems.
>>>
>>> So, I try to add a web reference in VC++ .NET, Now,
>here
>>> is the crux
>>> (I think).. So, there are three ways to add a web
>>> reference.
>>> 1 - check with the Microsoft UDDI service by clicking
>on
>>> the UDDI link
>>>
>>> 2 -- click web references on Local web serve to
>display
>>> locally registered services.. (I try that with no luck)
>>> The return xml in the other pane is pretty generic,
>>> saying that there is nothing published.
>>>
>>> 3 -- type the path to the .vsdisco file..
>>> When I use http://localhost/Default.vsdisco I get
>>> 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.
>>>
>>> here is the Default.vsdisco
>>> <?xml version="1.0" ?>
>>> - <disco:discovery
>>> xmlns:disco="http://schemas.xmlsoap.org/disco"
>>> xmlns:scl="http://schemas.xmlsoap.org/disco/scl">
>>> <scl:contractRef
>>> ref="http://localhost/Converter/Converter.asmx?
>WSDL" />
>>> </disco:discovery>
>>>
>>> If I bring up the WSDL file in the browser it looks
>all
>>> right.
>>>
>>> Now, I have checked the only think I can think of --
>i.e.
>>> IIS is running.. is there something else I have to do
>to
>>> get a webservice to run?
>>>
>>> thanks for any help.
>>> Joe Baric
>>>
>>>
>>> .
>>>
>>>
>>
>>.
>>
>.
>
Post a follow up to this message...





DevArticles.com

Receive all the latest quality ASP
& ASP.NET content direct to your inbox. Sign-up to our newsletter.




Programmers Resource

CShapeFriends.com

DevArticles.com

Ascenvia.net

World Of .NET

More partners...

Applied Innovations - Windows 2000 Web Hosting Experts
  5857 ASP & ASP.NET resources in over 451 categories and growing daily...
Fuzzy Software - asp / asp.net resources, tutorials, code, scripts, applications, components, newsgroups, hosts and much more... Sitemap 0 1 4