wsdl.exe

  • Thread starter Thread starter Jimbo
  • Start date Start date
J

Jimbo

Hi,

I am new to web services and am trying to set up a basic service using C#

I am trying to run wsdl.exe on my machine to generate a proxuy class for my
service. However, when running wsdl from the command line I get an error
report along the lines of;

'The document is not a recognised document type...'
'There is an error in XML Document (1,1)...'

I have tried looking up this problem on the internet and there are lots of
references to uncommenting a line to do with 'vsdisco' in the machine.config
file. I have .Net 1.1.4322 installed and the machine.config file has no
such line in it and no reference to vsdisco in it at all. Is there something
wrong with my set up or do I just need to add a line to the httpHandlers
section in maching.config - if so what should that line be?

Any pointers would be very welcome.

Thanks,

Jimbo.
 
Manina,

Thanks for the response.

I am using the following;

wsdl.exe http://localhost/ServiceHome/Service.asmx?WSDL

the Service.asmx file just contains the line

<%@ WebService Language="c#" Codebehind="Service.asmx.cs"
Class="ServiceHome.Service" %>

It was created on a different machine using VStudio.Net (not 2003)

The C# file with the implementation of the Service is in the same directory.

Jimbo.
 
Try saving your WSDL definition to one of the other file types wsdl reads (I
can't remember the details, and I'm on a pc running XP home, so no IIS to
check) WSDl is reading your file as a normal xml, so not seeing the right
stuff in the header - sorry to be so vague, but that's the direction you
should be looking in.
 
Back
Top