Home > Ask the SOA Experts > SOA governance and standards Questions & Answers > Publishing an XML message definition within a WSDL for Web services
Ask The SOA Expert: Questions & Answers
EMAIL THIS

Publishing an XML message definition within a WSDL for Web services

Anne Thomas Manes EXPERT RESPONSE FROM: Anne Thomas Manes

Pose a Question
Other SOA Categories
Meet all SOA Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 23 June 2005

What is the best way to publish a document/literal XML message definition within a Web Services Description Language (WSDL) file?

Should I define a schema that takes a single xsd:string and have clients pass in an XML document wrapped within a CDATA section for more control over versioning, error handling, etc.? Or should I publish strongly typed User Defined Types in the WSDL that exactly map to the XML message?

In the latter case, the message can be validated by the SOAP engine and client code tools, such as WSDL.EXE or WSDL2JAVA, and can create easy to use clients. Which approach makes the most sense and will keep us compliant with WS-* specifications?


>

Definitely do not send the message as a string wrapped within a CDATA section. That approach defeats many of the valuable features of using SOAP and WSDL. You should strongly type the messages, and specify the type information using XML Schema, for all the reasons you say and more. For example, without a proper schema, you can't specify which parts of the message you would like to sign or encrypt using WS-Security.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SOA governance and standards
UDDI clients and UDDI implementations
Creating an enterprise data dictionary
Hard vs. live real time systems
Service contract tools
Open source UDDI tools
SOA policy management
Service reuse rules
WSDM lagging behind WS-Management
The status of JBI
WSDL 1.1 vs. WSDL 2.0

Web services development
Java-based Abdera open source tools implement Atom services
Layer 7 secures Oracle ESB, protects SOA applications
Gomez adds new features through platform-wide upgrade
PowerBuilder 12 beta available
RAD Studio 2010 hits the shelves
Oracle brings Fusion Middleware into the modern age
Oracle Fusion Middleware 11g supports SCA, JavaServer Faces development
Investment site turns to Xignite, Amazon cloud computing to power portfolio tracker
SimpleDB shows promise
Yahoo says no deal

WS-Security (Web services security standards)
The technology of Web Service Security
Web 2.0 at the old ballgame
SOA complicated by ESB proliferation
BPEL4People and WS-HumanTask get reference implementation
Liberty offers Web 2.0 open source security
The case against WS-Security
SOA governance, security concerns drive XACML interop
New BizTalk Services rolling out
Will acquisitions stifle SOA innovation?
Burton: WS-* specs good, but SOA security needs more

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
ColdFusion  (SearchSOA.com)
Delphi  (SearchSOA.com)
Eclipse  (SearchSOA.com)
elegant solution  (SearchSOA.com)
interaction management  (SearchSOA.com)
message-driven processing  (SearchSOA.com)
Ruby on Rails  (SearchSOA.com)
Tim Berners-Lee  (SearchSOA.com)
Web services  (SearchSOA.com)
Web Services: Glossary  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SOA Governance White Papers - BPM, EDA, IT Governance
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts