File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCPJWSD) and the fly likes SOAP 1.2. vs. WS BP 1 & SOAP 1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply Bookmark "SOAP 1.2. vs. WS BP 1 & SOAP 1.1" Watch "SOAP 1.2. vs. WS BP 1 & SOAP 1.1" New topic
Author

SOAP 1.2. vs. WS BP 1 & SOAP 1.1

Allexicus Kernikus
Ranch Hand

Joined: Oct 07, 2009
Posts: 36
SOAP 1.2. clearly states that exactly one body element must (!) be present.

The WS BP 1.1. clearly states that exactly zero or one elements of the soap:body element (R9981). Then it goes on to reference SOAP 1.1. as the standart to follow. SOAP 1.1. in contrast states that a body element must (!) be present. - kind of confusing....

What do you guys think will be accurate at the test?

Many thanks in advance!!
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 2989
I'm not sure soap:Body is optional in WS-I BP 1.1 -- maybe I overlooked it.

My understanding is that :

1) soap:Body must present in valid SOAP message (soap:Header is optional) , see: http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383494

2) soap:Body may not have any siblings elements after it, see: http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html

R1011 An ENVELOPE MUST NOT have any element children of soap:Envelope following the soap:Body element.


HTH,
MZ




Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz [in progress...]
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2186
Hi!
Allexicus, you are partially correct. This is what the WS-I Basic Profile 1.1 says about the presence of a SOAP body element in a SOAP envelope:

R9981 An ENVELOPE MUST have exactly zero or one child elements of the soap:Body element.

Note that the WS-I Basic Profile only concerns itself with SOAP 1.1!
My guess is that SOAP 1.2 was not finalized when the Basic Profile was written (this is also confirmed by the dates of the specification web pages I have seen).

The WS-I Basic profile is to be seen as a clarification of the SOAP, WSDL etc etc specifications, since, at times, they are not entirely clear. Also, issues and experiences concerning web service interoperability has arisen after the specifications were written and the Basic Profile attempts to capture these experiences and correct these issues.
Thus, if you read something in the SOAP specification and then the Basic Profile says something else, then the recommendation is to follow the Basic Profile,in order to be interoperable.
Best wishes!
udaykumar maddigatla
Ranch Hand

Joined: Feb 03, 2009
Posts: 69
Hi

i too bit confused by seeing the BP 1.1 and SOAP 1.1 specifications.

i'm also confused about the usage of namespaces.

BP1.1 says soap's namepsace MUST be http://schemas.xmlsoap.org/soap/envelope/

But where as SOAP 1.2 specification the name space MUST be http://www.w3.org/2003/05/soap-envelope

which one to use?


SCJP 5.0(84%), SCWCD 5.0(97%), SCDJWS 5.0(98%)
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2186
Hi!
Which SOAP namespace to use depends on which version of SOAP you want to use. There are differences between the format of a SOAP 1.1 message and the format of a SOAP 1.2 message.
As it stands, if you use SOAP 1.2, you cannot claim that you conform to the WS-I Basic Profile version 1.1.
Best wishes!
udaykumar maddigatla
Ranch Hand

Joined: Feb 03, 2009
Posts: 69
Hey, thanks for the prompt reply.

While writting the SCDJWS exam, did they specify the version in the questions?

Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 2989
udaykumar maddigatla wrote:Hey, thanks for the prompt reply.

While writting the SCDJWS exam, did they specify the version in the questions?


Hi !

They do not specify SOAP version, but the good news is that SCDJWS 5 questions based only on SOAP 1.1

Best regards,
MZ
udaykumar maddigatla
Ranch Hand

Joined: Feb 03, 2009
Posts: 69
Hey

is the scdjws exam on soap 1.1?

in the scdjws exam objectivies i saw SOAP 1.2.

will you please clarify about this?
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 2989
udaykumar maddigatla wrote:Hey

is the scdjws exam on soap 1.1?

in the scdjws exam objectivies i saw SOAP 1.2.

will you please clarify about this?


Hi !

Unfortunately, SCDJWS 5 objectives posted on Sun web-site are not accurate.

HTH,
MZ
 
 
subject: SOAP 1.2. vs. WS BP 1 & SOAP 1.1
 
Threads others viewed
SOAP - the mustUnderstand Attribute
Some clarification on the versions of WSDL, SOAP, JAX-WS for SCDJWS
SOAP Message Construction
Mock exam question: SOAP doubt
SOAP - restriction to only one message part when using the type attribute
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture