This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Complex Type versus Simple Type in a WSDL definition 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 "Complex Type versus Simple Type in a WSDL definition" Watch "Complex Type versus Simple Type in a WSDL definition" New topic
Author

Complex Type versus Simple Type in a WSDL definition

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1168
Good Day,

WSDL Document Example uses complexTypes in its schema, such as -



In this specific case, it seems to me that an XSD simple element would suffice, such as -



Therefore, is there any reason for the usage of complexTypes here?

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Yaron Naveh
Greenhorn

Joined: Oct 26, 2008
Posts: 24
You are right that in this particular case a single element could be enough.

However it is a known convention to have a common root to all inner elements. So even though with one element it is not really helpful, it is still used. It also makes the SOAP more readable as the wrapper element name is based on the method name.


[url]http://webservices20.blogspot.com/[/url]
Web Services Performance, Interoperability And Testing Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Complex Type versus Simple Type in a WSDL definition
 
Similar Threads
how can i create java classes from given wsdl
Help needed for wsdl generated by wstools
Axis - describing arrays in WSDL : "unbounded sequence" instead of "soapenc:Array"
java.io.IOException: Type {http://lang.java}Exception is referenced but not defined.
Passing binary files in webservices