473,569 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wsdl.exe

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
3 3998
What is the input your are giving wsdl.exe?

"Jimbo" <ji***@nospam.n one> 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
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="Ser vice.asmx.cs"
Class="ServiceH ome.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******** *****@TK2MSFTNG P15.phx.gbl...
What is the input your are giving wsdl.exe?

"Jimbo" <ji***@nospam.n one> 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
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.n one> 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="Ser vice.asmx.cs"
Class="ServiceH ome.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******** *****@TK2MSFTNG P15.phx.gbl...
What is the input your are giving wsdl.exe?

"Jimbo" <ji***@nospam.n one> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
8655
by: Generic Usenet Account | last post by:
Does anyone have an opinion on how IDL and WSDL compare to each other? Are they equally powerful in their "expressive power"? Sometimes it appears to me that IDL is a little easier for humans to follow. Also, it appears to be more compact. Are IDL and WSDL equally powerful in expressing complex data types, and describing inheritance and...
5
4717
by: relaxedrob | last post by:
Hi All! I ran the following w3c example through my WSDL parser (SOA Editor from Cape Clear): http://www.w3.org/TR/wsdl#_rpcexample It told me that there were a bunch of erros about no timeInstant or float defined in the xsd namespace: "http://www.w3.org/2000/10/XMLSchema".
1
9888
by: ffhansix | last post by:
Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file command i recieve an error: Warning: one or more operations were skipped. Warnings were encountered. Review generated source comments for more details.
0
2115
by: saish | last post by:
Hello I am new to vb.net webservice. My requirement is to design a VB.net web service which will send and receive xml documents. The xml document send and received would be a very complex .xsd file which contains multiple formats of send and receive mesages. On reading books on webservice it was says to design an interface (ie design the...
0
1679
by: Elhanan | last post by:
hi.. i have a small Web Service which is consumed by dotnet application the webservice is located in 2 places. the first is my local tomcat, and the second is in websphere server. problems is that if i generate a proxy from the wsdl in websphere, i can't get the databean if refer the proxy's url my tomcat's (i simply recive null). this...
6
7181
by: Naveed Anwar | last post by:
how a tcp server running on given uri like "soap:tcp://localhost:8080/MyReceiver" will return wsdl. In normal web service case which runs on http returns wsdl by simply appending '?wsdl' in url, but I am confused how a tcp server will do the same. plzzzzzzzzz reply :((!! thanks:) in advance
1
5040
by: Mike Logan | last post by:
I have a schema that defines my messages and objects. I then have a WSDL that defines the web services. I have my sample XSD, sample WSDL, and the code generated from WSDL.exe. In the generated code from WSDL.exe, the "applicationList" object is not a array or "application", which is what it should be, correct? Thanks for the help. ...
9
11920
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: CODEGEN: The operation binding 'getAvaluos' from namespace 'urn:m15.AvaluosPortType' was ignored. The combination of style=rpc with use=literal is not...
3
9424
by: Siva | last post by:
Hi all, I want to Convert a WSDL to a SOAP message. Is there any way to do this. I am using .NET 2.0 Thanks in Advance Siva
5
4971
by: Nick K. | last post by:
I use wsdl.exe to generate client code to call a web service. The actual web service is generated with the BizTalk Web Services Publishing Wizard. I'm not sure this is particular to the BizTalk code but the calls to web methods pass parameters by ref so that I have to call it like: XmlDocument doc = new XmlDocument(); ...
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7677
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.