Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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: 2922
    
    5
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: dtd include in wsdl?
 
Similar Threads
Axis2 question
URL parameter passing
How to generate WSDL file for any JAX-WS?
JAXWS can not add additional classes
bean.xml ConnectException-Connection timed out: connect