By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,962 Members | 1,430 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,962 IT Pros & Developers. It's quick & easy.

wsdl.exe

P: n/a
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.

Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
What is the input your are giving wsdl.exe?

"Jimbo" <ji***@nospam.none> wrote in message
news:d9**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
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.

Jul 21 '05 #2

P: n/a
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.
"Marina" <so*****@nospam.com> wrote in message
news:eT*************@TK2MSFTNGP15.phx.gbl...
What is the input your are giving wsdl.exe?

"Jimbo" <ji***@nospam.none> wrote in message
news:d9**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
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.


Jul 21 '05 #3

P: n/a
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.

"Jimbo" <ji***@nospam.none> wrote in message
news:d9**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
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.
"Marina" <so*****@nospam.com> wrote in message
news:eT*************@TK2MSFTNGP15.phx.gbl...
What is the input your are giving wsdl.exe?

"Jimbo" <ji***@nospam.none> wrote in message
news:d9**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
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.




Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.