Which two statements are true about the interaction between a JAXR 1.0 client and a UDDI registry? (Choose two.)
A. A JAXR client can delete an organization that it published.
B. A JAXR client CANNOT delete any of the entries in a UDDI registry.
C. A JAXR client must use HTTPS for updating the information in a UDDI registry.
D. A JAXR client can query and update the information in a UDDI registry using HTTP.
E. A JAXR client can delete an organization that it published only if the protect property is set to False.
What are two valid facts about WS-I? (Choose two.)
A. The I-Stack is a great development tool.
B. The WS-I promotes and supports generic protocols for the interoperable exchange of messages.
C. The WS-I governs languages and protocols such as SOAP, WSDL, and UDDI.
D. The WS-I specifies specific rules that address either weaknesses in component specifications or issues of how to combine the collected technology.
E. The WS-I has been a guiding force in creating StAX.
A developer is analyzing an existing Web service with performance problems. The analysis reveals the service employs SOAP over HTTP. When the size of the encoded binary files grew with changing business requirements, the service slowed. What are two effective solutions for this problem? (Choose two.)
A. Separating the XML and binary content with WS-Filtering implemented in WSIT will improve efficiency.
B. XML documents larger than 1 KB with binary encoding should be optimized.
C. WS-Addressing can ease congestion by routing messages over other protocols.
D. For existing services, the most effective solution is to increase the available bandwidth.
E. MTOM can reduce both processing and bandwidth required by SOAP with attachments.
A purchase order Web service is designed to be synchronous, request-response, and HTTP- based. The existing service processes the request immediately. Because of new business requirements, the service can take up to ten days to perform a credit check before processing the order. Which two design changes need to be made? (Choose two.)
A. The client needs to use dynamic proxies instead of stubs.
B. The client needs to develop and deploy a Web service to accept callbacks.
C. The service only needs to change the WSDL from rpc-literal to document-literal.
D. The client and the service need to establish a mechanism to correlate the messages.
E. Given delays of up to ten days, a polling strategy is more efficient than callback.
A developer is asked to determine which Web services approach is correct for a new project. A SOAP-based Web service must be created and deployed in an environment where many customers will use it. These customers will be responsible for developing their own clients, based on the published WSDL. Which approach is correct to use first in this situation?
A. Java, because the WSDL generated later will be more accurate
B. WSDL, because the service and customers can benefit from the strongly typed schema
C. Java, because the service must be efficient to support many customers
D. WSDL, because tools allow existing classes to be easily mapped without modification
Which two statements are true about JAX-WS API using SOAP or REST? (Choose two.)
A. JAX-WS prefers base 64 encoding of binary attachments for SOAP and REST.
B. SOAP services require deployment descriptors and REST uses annotations.
C. XML and REST are often easier to use than SOAP for stateless services.
D. JAX-WS clients can bind both SOAP and raw XML from REST.
E. REST services must be used to generate portable artifact classes mapped to SOAP.
Given:
1.
@WebService(name="LogInventory")
2.
public class InventoryReader {
3.
@WebMethod(operationName=check)
4.
@OneWay
5.
public void checkProduct(String name);
6.
@WebMethod
7.
public void addInventory(
8.
@WebParam(name="total") int quantity)
9.
throws InventoryException;
10.
}
Assume the code is free of gross flaws and syntax errors.
Which two statements are true? (Choose two.)
A. Line 8 specifies that addInventory accepts either a valid total or quantity.
B. Line 1 indicates the portType is LoginInventory.
C. Line 3 shows the method is mapped to the WSDL operation called checkProduct.
D. Line 4 means that a method is not expected to return a value unless requested.
E. Line 6 implies WSDL operation and method name are the same.
Which three statements are true about JAXP APIs? (Choose three.)
A. They are a part of Java SE 6.
B. They allow Java developers to access and process XML data without having to know XML or XML processing.
C. They do NOT support validation of XML documents against schemas.
D. It supports the Streaming API for XML.
E. It requires the Streaming API for XML.
F. They provide developers with a vendor and parser-implementation independent API to process XML.
Which two statements are true about creating a SOAP message with an attachment? (Choose two.)
A. Binary attachments make SOAP incompatible with HTTP.
B. A SOAP Message package must specify Content-Type as multipart/related.
C. If one or more attachments are XML, they must be in the body of the SOAP message.
D. MIME attachments referenced inside the SOAP body must use SOAP references.
E. MIME provides a method to encode attachments in XML making them compatible with SOAP.
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.