Which two statements are true about JAXR support for XML registries? (Choose two.)
A. The CapabilityProfile tells a client the capability level of a registry.
B. UDDI registries must support ebXML to be compatible with JAXR.
C. The UnsupportedCapabilityException is processed for errors from non-Java providers.
D. The JAXR API declares methods as level 0 or level 1.
E. JAXR registry clients present an XML schema that defines the infomodel for the provider.
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.
A company is building a Java EE 5 purchase order processing system. This system will integrate with an external invoicing system as part of the purchase order approval process. A developer created a new client application to access the invoicing system using request-response, but a new service call is receiving errors every time it invokes the necessary Web service.
Which statement is true about the Body element of the SOAP reply message?
A. It must NOT contain any fault elements.
B. It will contain a fault element for each error.
C. It will contain exactly one fault element.
D. It must contain zero or one fault element.
E. It must contain an array of fault elements.
A developer needs to write a Web service that supports user sessions that timeout after 120 seconds. Which configuration file is correct for the developer use?
A. web.xml
B. server.xml
C. ejb-jar.xml
D. service-config.xml
A developer is asked to consult on a Web services project and assist the team with a good design approach on a new project. The team members disagree on whether to use WSDL or Java first.
Several members are skilled with XML and see a schema and WSDL as the correct place to start. The team has also learned the deadline for this project has been moved up and another team plans to reuse their code. Which statement is
true about the proper course of action to take in this situation?
A. Java should be used first because it is a strongly typed language and will result in a robust WSDL.
B. WSDL should be used first because it will make the code easier to reuse for the other team.
C. Java should be used first because it is often the fastest and easiest approach.
D. WSDL should be used first because the team knows XML Schema.
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.
A developer is writing a Web service method that needs to accept multiple types of requests. Based on the request's content, the service performs time-consuming steps, such as verifying the user's account, checking credit ratings, and building a list of offers. Which two approaches are appropriate to use in this situation? (Choose two.)
A. a synchronous, document-style approach
B. a synchronous, procedure-style approach
C. an asynchronous, document-style approach
D. an asynchronous, procedure-style approach
E. HTTP and HTTPS
F. SMTP or other asynchronous protocol
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
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.
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