wood burning stoves 2.0*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Doc/Lit unwrapped is WS-I compliant? 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 "Doc/Lit unwrapped is WS-I compliant?" Watch "Doc/Lit unwrapped is WS-I compliant?" New topic
Author

Doc/Lit unwrapped is WS-I compliant?

Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 775
According to MZ's version 5 notes, p. 145, there is soap:body like this:
<soap:Body>
<xElement>5</xElement>
<yElement>5.0</yElement>
</soap:Body>
"Weakness: WS-I only allows one child of the soap:body in a SOAP message... This example's soap:body has two children."
"Strengths: Document/literal is WS-I compliant, but with restrictions."

If in the exam, I am given a question like this "Is Doc/Lit unwrapped WS-I compliant?" Should I answer Yes or No?
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1696
    
  25

No.

Document/literal/unwrapped (or bare) is not fully compliant, you can try it yourself. JAX-WS is Basic Profile v1.1 compliant, so just create a web method with more than 1 parameter and see what happens when you try to deploy the web service.
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 775
I created a post earlier at this link :http://www.coderanch.com/t/624936/java-Web-Services-SCDJWS/certification/parameterStyle-Bare-web-methods-parameter
Obviously, BP v1.1 does not support a web method with more than 1 parameter under doc/lit/unwrapped.

So, if I am asked this question in the exam "Does doc/lit/unwrapped WS-I compliant?" I should select "not fully compliant" or "compliant with the restriction of only 1 parameter".
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1696
    
  25

Himai Minh wrote:
So, if I am asked this question in the exam "Does doc/lit/unwrapped WS-I compliant?" I should select "not fully compliant" or "compliant with the restriction of only 1 parameter".

Yes.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Doc/Lit unwrapped is WS-I compliant?