A company's new investment management Java application and a legacy stock trader application need to communicate, but they use different JMS implementations. A developer decides to implement a JMS bridge to solve the problem. Which two advantages does this pattern provide? (Choose two.)
A. It converts the interface of a class into another interface that clients expect.
B. It decouples an abstraction from its implementation so that the two can vary independently.
C. It dynamically attaches additional responsibilities to an object.
D. It optimizes network traffic.
E. It is vendor independent.
Based on separation of concerns, which two are correctly implemented in the processing layer of a Web service? (Choose two.)
A. validation of XML documents
B. saving document contents in a database table
C. application of the business logic to the XML document
D. translation of incoming XML documents to their internal XML representations
E. a new SOAP message for exceptions during validation of XML
Given:
1.
2.
3.
4.
5.
6.
7.
Solaris for Intel
8.
9.
10.
11.
Which statement is correct?
A. The message is SOAP-encoded because the encoding style is implied.
B. The message is RPC-encoded because in the absence of other specifiers, this is the WS-I default.
C. The message is document literal with type encoding, based on the schema provided.
D. The message is document literal wrapped because there is no encoded type information.
An organization has business logic implemented in EJB components. Current clients use container-managed, role-based security to access the business logic using RMI. Management has determined that the business logic must be made available to non-RMI clients using a Web service. Which container-managed Web service security mechanism must the development team use to allow Web service clients to use the current security model?
A. XKMS
B. XACML
C. XML Digital Signature
D. HTTP Basic Authentication
E. annotations mapped to the JAX-WS runtime
A developer is tasked with analyzing a new Web services project and must decide to use either SOAP or REST. Based on requirements, the developer determines the service must be stateful and have a documented interface and data types that clients can discover dynamically. Which two statements are true? (Choose two.)
A. The SOAP approach consists of resources identified by unique URIs.
B. SOAP services are self-documenting via the WSDL.
C. Either SOAP or REST are suitable for the Web service.
D. REST fully documents data types via the functional interface GET and POST.
E. RESTful services are stateless by definition.
A developer is given a WSDL for an existing Web service. What is the correct sequence of steps that must be taken to use that Web service?
A. parse the WSDL using JAXP, connect to the service using RMI, and then parse the XML using SAX
B. use a utility (such as wsimport) to read the WSDL and generate a service endpoint interface
C. register the WSDL with wsgen, bind to the stubs, and then call methods on the interface
D. receive the service using RMI, parse the XML using JAXP, create Java objects using JAXR, and then return those Java objects
A stateful Web service is implemented as an EJB-based endpoint. What are two ways to maintain that state? (Choose two.)
A. by using URL re-writing
B. by adding a session cookie to the HTTP headers
C. by adding a conversation id to the SOAP headers
D. by requiring clients to send a client id parameter to all methods
Given the Java fragment and schema:
1.
//-- Java code fragment
2.
public enum USState {MA, NH}
3.
//-- Schema fragment
4.
5.
6.
7.
8.
9.
10.
// .NET auto generated code from schema
11.
public enum usState { NH, MA }
Which statement is true about .Net and WCF interoperability for this data?
A. Based on the fragment, enumerations map well between Java and .Net.
B. The subtle differences in the variable names make it clear these enumerations are NOT interoperable.
C. The XML schema reveals the type on the enumeration is lost across the platforms.
D. This exchange would be interoperable if the annotation @XmlEnum was applied to the Java method.
A developer plans to refactor some of the company's existing Java EE 5 business services, moving them out of the existing monolithic application and into Web services. What are two benefits of exposing existing Java EE 5 functionality as a Web service? (Choose two.)
A. improved manageability
B. more finely-grained
C. enhanced security
D. loose coupling of functionality
E. self-describing
F. automatic session management
A developer needs to implement stateful Web services for their new application by maintaining a session with the client application. Which two technologies should the developer use to implement Web services? (Choose two.)
A. EJB Endpoint
B. Servlet Endpoint
C. JSON
D. REST
E. SOAP
F. JAXP