problem with VB.NET and XML web services
-
i'm trying to create an XML web service. I have done the following: 1) install & setup IIS 2) create ASP.NET web service in VB (called "HelloWorldService") 3) uncommented the HelloWorld web method in HelloWorldService.asmx 4) compiled the project 5) created a new VB.NET windows app (HelloWorldClient) 6) tried to add a web reference to http://localhost/HelloWorldService/HelloWorldService.vsdisco i got the following errors: Errors The document at the url http://localhost/HelloWorldService/HelloWorldService.vsdisco was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'WSDL Document' is 'There is an error in XML document (2, 2).'. - was not expected. - Report from 'DISCO Document' is 'Discovery document at the URL http://localhost/HelloWorldService/HelloWorldService.vsdisco could not be found.'. - The document format is not recognized. - Report from 'XML Schema' is 'Expected Schema root. Make sure that the root element is and the namespace is 'http://www.w3.org/2001/XMLSchema' for an XSD schema or 'urn:schemas-microsoft-com:xml-data' for an XDR schema. An error occurred at (2, 2).'. ---------- is there soemthing i forgot to do? if u can point me in the right direction, it'd be much appreciated oh, and i'm running windows XP pro sp2 with IIS.
-
i'm trying to create an XML web service. I have done the following: 1) install & setup IIS 2) create ASP.NET web service in VB (called "HelloWorldService") 3) uncommented the HelloWorld web method in HelloWorldService.asmx 4) compiled the project 5) created a new VB.NET windows app (HelloWorldClient) 6) tried to add a web reference to http://localhost/HelloWorldService/HelloWorldService.vsdisco i got the following errors: Errors The document at the url http://localhost/HelloWorldService/HelloWorldService.vsdisco was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'WSDL Document' is 'There is an error in XML document (2, 2).'. - was not expected. - Report from 'DISCO Document' is 'Discovery document at the URL http://localhost/HelloWorldService/HelloWorldService.vsdisco could not be found.'. - The document format is not recognized. - Report from 'XML Schema' is 'Expected Schema root. Make sure that the root element is and the namespace is 'http://www.w3.org/2001/XMLSchema' for an XSD schema or 'urn:schemas-microsoft-com:xml-data' for an XDR schema. An error occurred at (2, 2).'. ---------- is there soemthing i forgot to do? if u can point me in the right direction, it'd be much appreciated oh, and i'm running windows XP pro sp2 with IIS.
Don't use the .vsdisco, use the .asmx as your web reference. IIRC the .vsdisco stuff is deprecated anyway. -- Ian Darling
-
Don't use the .vsdisco, use the .asmx as your web reference. IIRC the .vsdisco stuff is deprecated anyway. -- Ian Darling
Thanks, I actually tried that and it gave me an option to save or open the file. I figured out why it wasn't working. I forgot to install some web components from the VS.NET install cd. Go figure. Thanks