Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes dtd include in wsdl? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "dtd include in wsdl?" Watch "dtd include in wsdl?" New topic
Author

dtd include in wsdl?

rich farrell
Greenhorn

Joined: May 05, 2006
Posts: 4
Hello,
I'm trying to figure out the best way to validate the wsdl I'm producing for axis. Having tried schema, I now wanted to try dtd. Eclipse doesn't seem to support creating a wsdl from dtd. If I changed the wsdl in Eclipse to use the doctype tag to include a dtd, eclipse marks it with an error. Should I be able to have a dtd based wsdl?
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
By default, no.


WSDL recognizes the need for rich type systems for describing message formats, and supports the XML Schemas specification (XSD) [11] as its canonical type system. However, since it is unreasonable to expect a single type system grammar to be used to describe all message formats present and future, WSDL allows using other type definition languages via extensibility.

Web Services Description Language (WSDL) 1.1

And the Basic Profile doesn't like DTDs in general.

4.1.8 SOAP's use of XML
XML DTDs and PIs may introduce security vulnerabilities, processing overhead and ambiguity in message semantics when used in SOAP messages. As a result, these XML constructs are disallowed by section 3 of SOAP 1.1.
R1008 A MESSAGE MUST NOT contain a Document Type Declaration. C
R1009 A MESSAGE MUST NOT contain Processing Instructions.


If furthermore states that the use of DTD for validation of WSDL is out of scope of the profile:

These mechanisms are out of the scope of the Profile; their use may affect interoperability, and may require private agreement between the parties to a Web service.

Basic Profile Version 1.0a


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dtd include in wsdl?
 
Similar Threads
JAXWS can not add additional classes
URL parameter passing
bean.xml ConnectException-Connection timed out: connect
How to generate WSDL file for any JAX-WS?
Axis2 question