aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Document/Literal versus Document/literal wrapped Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Document/Literal versus Document/literal wrapped" Watch "Document/Literal versus Document/literal wrapped" New topic
Author

Document/Literal versus Document/literal wrapped

Dan Drillich
Ranch Hand

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

Looking at Listing 9. Document/literal wrapped SOAP message for myMethod from Which style of WSDL should I use? -




And from Ivan's study guide, page 36, defined as Document/literal.



Looking at these two, make me think that Ivan's is also Document/literal wrapped, where the wrapper is the purchaseOrder element.

Any thoughts?

Regards,
Dan



William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Actually, according to your reasoning, everything would be Document/Literal Wrapped since the Basic Profile only allows one child element of the SOAP body element.
I feel it is a matter of distinction which perhaps only can be done by a human:
- In the first case, there is an artificial construct, an element named after the method/operation that is invoked, that wraps the parameters.
The added element works only as a container in order to make the request Basic Profile compliant. We can understand the request and the operation would be able to produce a result even without the wrapper.
- In the second case, the XML representation of a purchase order is enclosed in the SOAP message. There is no need to add anything that does not belong to the purchase order.
If we remove the <purchaseOrder> element, we are left with a collection of data which we do not know what they represent.

I hope this helps you separate the two cases.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Ivan Krizsan wrote:Hi!
Actually, according to your reasoning, everything would be Document/Literal Wrapped since the Basic Profile only allows one child element of the SOAP body element.


I agree with you, especially since I'm biased towards Document/Literal Wrapped due to this article. The article has a section for that matter .... Why not use document/literal wrapped all the time?

In general I think that Document/Literal Wrapped makes a very strong line between the protocol level (SOAP) and the application's content, by enclosing the application's content within a distinct element.

Regards,
Dan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Document/Literal versus Document/literal wrapped