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 situation requires the client to use the Dispatch interface to access the Web service?
A. The client and the server are on different platforms.
B. The client has access to the portable artifacts, but not to the WSDL.
C. The client has access to the WSDL, but not to the portable artifacts.
D. The client will access a REST-based service.
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
RESTful Web services have an interface of well-known standard operations, and all services are accessed through this interface. What are the four standard operations available for RESTful Web services? (Choose four.)
A. GET
B. CONNECT
C. PUT
D. SUBMIT
E. POST
F. HEAD
G. DELETE
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
A developer new to Web services is researching how a client can connect to a service. It is clear that some models provide better abstraction while others offer more power when working with messages. What is the correct reason to choose the Dispatch interface?
A. Dispatch is a high-level API that helps hide the complexity of XML.
B. REST services can be consumed with the Dispatch API and XML/HTTP bindings.
C. The Dispatch interface supports the use JAXP to bind data.
D. The Dispatch interface is represented internally as a SOAP message.
A company uses Web services to exchange mortgage and credit data as well as digital versions of associated documents. The data is confidential and it is common for the service and client to exchange applications, credit results, reports and more in a request/response format. Recently, the company has become concerned about the substantial cost of processing and message encryption with a PKI approach. What can be done to cut costs?
A. use MTOM to optimize the messages and provide data confidentiality via XML Digital Signature
B. because of the weak adoption of WS-SecureConversation on Java platforms, consider using Kerberos
C. use HTTPS as it is both economical and adequate
D. use WS-SecureConversation and MTOM to reduce the processing overhead
What are three best practices that can be implemented when generating WS-I Basic Profile compliant Web services? (Choose three.)
A. send arrays of nulls to ensure .NET and Java clients receive the same data
B. define data types early in the integration cycle
C. use complex data types to reduce the number of items exchanged
D. test interoperability at every stage of development
E. insert conformance headers in all SOAP messages
F. keep data types simple for speed and stability
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
Which two code fragments are valid XML schema anonymous complex type definitions? (Choose two.)
A.
B.
C.
D.