• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doc/Lit unwrapped is WS-I compliant?

 
Himai Minh
Ranch Hand
Posts: 1294
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Pie
Posts: 2401
92
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1294
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Pie
Posts: 2401
92
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic