This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes SOAP & dtds & xsds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP & dtds & xsds" Watch "SOAP & dtds & xsds" New topic
Author

SOAP & dtds & xsds

Todd Johnson
Ranch Hand

Joined: Sep 03, 2005
Posts: 61
I'm just getting started with SOAP. We are looking to using SOAP messaging (not RPC) between many devices, platforms, and languages. I know you cannot use DTDs with SOAP, but can you use XML schemas? If not, we'll end up writing a lot of code to verify the messages we send/receive are formed correctly based on the design of our messages.

Thanks!
Todd
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Yes
XML Schema is an integral part of SOAP web services.
However in production you would typically only validate content received from sources outside of your control to minimize the overhead.

3.4.2 Receiving Requests

4.3.3 Validating XML Documents

Patterns and Strategies for Building Document-Based Web Services
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAP & dtds & xsds