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 client sends a required SOAP header as a SOAP message. The server-side process determines that information in the header is invalid and generates a SOAP fault. What is the appropriate fault code for this type of SOAP fault?
A. Client
B. Server
C. MustUnderstand
D. VersionMismatch
E. HeaderError
F. InvalidHeader
Which three statements about parsers are true? (Choose three.)
A. SAX and StAX are bi-directional.
B. DOM and StAX are bi-directional.
C. StAX is a push API, whereas SAX is pull.
D. SAX is a push API, whereas StAX is pull.
E. SAX and StAX are read-only.
F. SAX and DOM can write XML documents.
G. StAX and DOM can write XML documents.
Which two statements are true about elements in a WSDL document? (Choose two.)
A. Operation is an abstract set of port types supported by one or more endpoints.
B. Service is an abstract set of operations supported by one or more endpoints.
C. Message is an abstract description of an action supported by the service.
D. Operation is an abstract description of an action supported by the service.
E. Binding is a single endpoint defined as a combination of an operation and a network address.
F. Message is an abstract, typed definition of the data being communicated.
A company is implementing an accounting system, where every transaction is monitored and audited. They must implement message-oriented Web services in their accounting package to integrate various modules. All errors in computation or transmission must be logged. Which two technologies will they use? (Choose two.)
A. SOAP
B. REST
C. JAXR
D. XML
E. JSON
F. JSP
Place the general steps in the JAXB data binding process in the correct order.
a.
compile classes
b.
generate classes
c.
generate content tree
d.
marshall
e.
process content
f.
unmarshall
g.
validate
A.
f,b,a,c,g,e,d
B.
b,a,d,c,g,e,f
C.
b,a,f,c,g,e,d
D.
b,a,d,c,e,f,g
E.
f,c,a,b,g,e,d
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.
What are two reasons for choosing message-level security in a Web service? (Choose two.)
A. to support the use of SSL
B. to support multiple transport protocols
C. to selectively encrypt message content
D. to remove security information from SOAP headers
E. to support encrypted attachments
A Web service needs to encrypt certain SOAP headers when responding. Which statement about this encryption?
A. The Web service interaction layer is the appropriate place for such encryption.
B. The Web service processing layer is the appropriate place for such encryption.
C. Either the Web service interaction or processing layer is appropriate for such encryption.
D. Neither the Web service interaction nor processing layer is appropriate for such encryption.
E. Protocol-based encryption like HTTPS should be used to meet the requirements without code changes.