• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-WS Dispatch API question in SCEA part 1

 
Ren Shao
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Ren Shao
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But is that kind of question part of the objectives of SCEA part 1 ?
 
Ren Shao
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too detailed for SCEA part 1.
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is more about testing the cleverness of the user rather than conceptual level. I had same question doubt, this post helped me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic