This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSDL - Message parts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL - Message parts" Watch "WSDL - Message parts" New topic

WSDL - Message parts

Dhanasekaran Krishnasamy

Joined: Jun 30, 2008
Posts: 9
What is the use/need/advantage of having message parts in WSDL?
i mean,
<message ...>
<part name=.../> <!-- what is this for? -->

Dhanasekaran<br />SCJP 5.0
Yaron Naveh

Joined: Oct 26, 2008
Posts: 24
You can have a message with a few parts where some of them will appear in the SOAP body and some in the SOAP header. So logically you want them to be considered as one message but on-the-wire they will be different. However I agree that this can be achieved in other manners and that best practice (in doc/lit/wrapped wsdl) is to have only one part.

Web Services Performance, Interoperability And Testing Blog
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180

What exactly are you asking?

Is it about the overhead of the part elements? One central topic with XML is whether to use elements or attributes.


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

Joined: Jun 30, 2008
Posts: 9
Simply, what is part in message, is it going to change the way SOAP will look like, etc
Consider Paul's rocket mass heater.
subject: WSDL - Message parts