wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes JAX-WS Dispatch API question in SCEA part 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "JAX-WS Dispatch API question in SCEA part 1" Watch "JAX-WS Dispatch API question in SCEA part 1" New topic
Author

JAX-WS Dispatch API question in SCEA part 1

Ren Shao
Ranch Hand

Joined: Dec 23, 2002
Posts: 51
I found this question in one of the mock exam, is that in the scope of a real exam?

16.The new Dispatch API introduced in JAX-WS supports a fully dynamic service invocation.

Which statement defines a requirement for a JAX-WS dynamic service?

A.Only an XML Schema document and knowledge of the body of the message is required to build a client.
B.Requires only the WSDL document and knowledge of the header of the message is required to build a client.
C.No WSDL or XML Schema document or any other knowledge of the message layout is required to build a client.
D.JAX-WS support for a fully dynamic service invocation requires knowledge of a WSDL and the XML Schema document

The answer is C
I've no idea what the new dispatch API is.

Thanks
Gigio Avila
Greenhorn

Joined: Aug 25, 2009
Posts: 1
The new Dispatch API introduced in JAX-WS supports a fully dynamic service invocation. No WSDL or XML Schema document or any other knowledge of the message layout is required to build a client. This flexibility comes at a cost – the developer must be intimately familiar with the details of SOAP protocol and the underlying message composition API, such as DOM or SAAJ. Some examples of situations in which you might want to use dispatches are:

* Document exchange scenarios, where the dynamic nature of dispatches is important. For example, when the actual message is output by an external process, such as a file from an external system or as the result of an XSLT transformation. In this scenario, the dispatch is used to provide the SOAP envelope, and to transmit the message and pass back the response without interacting with the actual message.
* Where interoperability with older, non WS-I compliant services is desired, such as interoperability with RPC-encoded style services.
* Where you need to work with a data binding technology other than JAXB. JAX-WS is built around its tight integration with JAXB 2.0. Although there is no direct support for other bindings in JAX-WS, while writing this article we came across a number of scenarios where it was desirable to use another data binding technology like Castor or XML beans.
* Where there are specific advantages to be gained by not using SOAP protocol, dispatches support an XML/HTTP binding, which can be used to invoke endpoints that exchange raw XML documents based on application-defined structures.


source:

http://www.ibm.com/developerworks/websphere/library/techarticles/0707_thaker/0707_thaker.html


Gigio Avila
ITC - IS
-----------------------------------------------------------------
CCNA, SCJA, SCJP, SCMAD, SCWCD, SCEA- I
Ren Shao
Ranch Hand

Joined: Dec 23, 2002
Posts: 51
Thanks
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

But is that kind of question part of the objectives of SCEA part 1 ?


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Ren Shao
Ranch Hand

Joined: Dec 23, 2002
Posts: 51
I didn't see such a question in the real exam. You just have to know what JAX-WS is used for.
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Too detailed for SCEA part 1.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 844
This question is more about testing the cleverness of the user rather than conceptual level. I had same question doubt, this post helped me.


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
 
jQuery in Action, 2nd edition
 
subject: JAX-WS Dispatch API question in SCEA part 1
 
Similar Threads
Sample Questions for 288 - Need answers
How to generate a correct WSDL for a service with overloaded methods ?
Any feedback for SCDJWS Beta?
Need estimation for SCDJWS
Answer confirmation for a JAX-WS client questions