Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. problem with VB.NET and XML web services

problem with VB.NET and XML web services

Scheduled Pinned Locked Moved Visual Basic
helpwcfxmlcsharp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AirGuitarist
    wrote on last edited by
    #1

    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 1 Reply Last reply
    0
    • A AirGuitarist

      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 Offline
      I Offline
      Ian Darling
      wrote on last edited by
      #2

      Don't use the .vsdisco, use the .asmx as your web reference. IIRC the .vsdisco stuff is deprecated anyway. -- Ian Darling

      A 1 Reply Last reply
      0
      • I Ian Darling

        Don't use the .vsdisco, use the .asmx as your web reference. IIRC the .vsdisco stuff is deprecated anyway. -- Ian Darling

        A Offline
        A Offline
        AirGuitarist
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups