|    
|
|  |
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... |
|  |
|