• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAX-WS Dispatch API question in SCEA part 1

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Too detailed for SCEA part 1.
 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
no wonder he is so sad, he hasn't seen this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic