File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 1183

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
I agree. Here's the link:
subject: WSDL - Message parts
It's not a secret anymore!