Which statement is true about JAX-WS dynamic invocation?
A. Dynamic invocation clients use RPC typed interfaces to invoke the Web service.
B. Dynamic invocation lets clients access a Web service without a WSDL.
C. Dynamic invocation clients are bound at design-time to a single Web service.
D. Dynamic invocation requires the client to statically configure the Web service proxy.
E. The dynamic proxies provide dynamic invocation in JAX-WS.
A company is creating an XML schema that describes various training materials available for purchase by students.
Given the namespace aliases and schema that appear in the WSDL file for a document-style Web service:
xmlns:xsd="http://schemas.xmlsoap.org/wsdl/"
xmlns:book="http://www.sun.com/books"
...
Which is a valid message element for this WSDL file?
A.
B.
C.
D.
E.
F.
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
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.
An engineer is studying the architecture of the JAXB implementation. What are three components in its design? (Choose three.)
A. schema compiler
B. built-in SAX parser
C. schema generator
D. built-in DOM parser
E. binding runtime framework
F. schema interpretor
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
Which two code fragments are valid for adding an attachment in SAAJ? (Choose two.)
A. SOAPMessage object. AttachmentPart attachment=request.createAttachementPart(); String stringContent = Update total; attachment.setContent(stringContent,text/plain); attachment.setContentID(update_total); request.addAttachmentPart(attachment);
B. SOAPMessage object. Attachment attachment=request.createAttachement(); String stringContent = Update total; attachment.setContent(stringContent,text/plain); attachment.setContentID(update_total); request.addAttachment(attachment);
C. URL url = new URL(http://eshop.com/products/tb.jpg); DataHandler datahandler = new DataHandler(url); AttachmentPart attachment = request.createAttachmentPart(dataHandler); attachment.setContentID (attached_image); request.addAttachmentPart(attachment);
D. URL url = new URL(http://eshop.com/products/tb.jpg); DataHandler datahandler = new DataHandler(url); Attachment attachment = request.createAttachment(dataHandler); attachment.setContentID (attached_image); request.addAttachment(attachment);
E. SOAPMessage object. Attachment attachment=request.newAttachement(); String stringContent = Update total; attachment.setContent(stringContent,text/plain); attachment.setContentID(update_total); request.setAttachment(attachment);
Which Java type can be used to represent arbitrary XML data in a JAX-WS service endpoint interface?
A. javax.xml.soap.SOAPNode
B. javax.xml.soap.SOAPPart
C. javax.xml.soap.SOAPElement
D. javax.xml.soap.SOAPException
E. javax.xml.soap.SOAPMessage
F. javax.xml.soap.Node
A Java EE 5 application contains business logic composed of EJB3 beans. All current clients are Java applications accessing the business logic using RMI. Some clients are remote (running in different JVMs) and some are local (running in the same JVM). Which two occur if EJB components are exposed as Web services? (Choose two.)
A. New applications can use published interfaces to access existing applications.
B. Current local clients must access the Web services in the application as an URL.
C. WSDL documents define common types for all clients.
D. Current remote clients must switch from RMI to Web service access.
E. Delivery of messages is guaranteed for local clients.
A company has contracted a developer to create their new accounting system. The system the developer will replace runs a monolithic web application using one web server and one database server. Technical requirements state the developer must write the business logic in Java, deploy to the application server and push the presentation logic onto the web servers. What are three characteristics of services in the proposed Service Oriented Architecture? (Choose three.)
A. Services are coarse grained.
B. Services are finely grained.
C. Services are loosely coupled.
D. Services are tightly coupled.
E. Clients must be implemented in the Java technology.
F. Services are platform agnostic, network-addressable web APIs.