1Z0-897 | Most recent 1Z0-897 Exam Study Guides With New Update Exam Questions


Q41. In the following situation, Client C sends a SOAP request to Service S and the response is to be processed by a third party response processor R. Which of the following SOAP headers in the request message convey the intention? Assume the endpoint reference of Service S is 

A. <s11:Header> 

<wsa:Action>http://example.com/action/process</wsa:Action> 

<wsa:ReplyTo> 

<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address> 

<wsa:ReplyTo> 

</s11:Header> 

B. <s11:Header> 

<wsa:Action>http://example.com/action/process</wsa:Action> 

<wsa:ReplyTo> 

<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address> 

<wsa:ReplyTo> 

</s11:Header> 

C. <s11:Header> 

<wsa:Action>http://example.com/action/process</wsa:Action> 

<wsa:ReplyTo> 

<wsa:Address>http://example.com/responseprocessor</wsa:Address> 

<wsa:ReplyTo> 

</s11:Header> 

D. <s11:Header> 

<wsa:Action>http://example.com/action/process</wsa:Action> 

<wsa:ReplyTo> 

<wsa:Address>http://example.com/service</wsa:Address> 

<wsa:ReplyTo> 

</s11:Header> 

Answer:

Q42. A team of developers is designing RESTful Web services for a new application. What are three properties of the services? (Choose three.) 

A. They can be stateful. 

B. They can be stateless. 

C. Components communicate by exchanging representations of the resource. 

D. Components communicate by directly performing operations on the resource. 

E. They require WSDL service API definitions. 

F. Responses can be labeled as cacheable or non-cacheable. 

Answer: BCF 

Q43. 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. 

Answer: CF 

Q44. Which of the following can be used on the SEI's method parameter so that the corresponding generated schema type is wsiap:swaref ? (Choose one) 

A. @XMLSchemaType 

B. @SwaRef 

C. @XmlMimeType 

D. @XMLAttachmentRef 

Answer:

Q45. Choose two options from the following that can be achieved by setting the standard BindingProvider properties on a SEI proxy: (Choose two) 

A. Configuring HTTP Basic Authentication credentials to access a service 

B. Validating against schema for outgoing client messages 

C. Adding additional SOAP headers for outgoing messages 

D. Specifying web service endpoint address for service invocations 

Answer: AD 

Q46. Choose three ways to enable MTOM on a web service endpoint deployed in an EE container ? (Choose three) 

A. enabled by the container automatically 

B. by specifying @MTOM annotation on the endpoint's class 

C. by specifying <enable-mtom> in webservices.xml deployment descriptor 

D. by specifying a wsoma:MTOM policy in WSDLE. by specifying <mtom> element in sun-jaxws.xml 

Answer: BCD 

Q47. Which of the following is NOT a correct way of configuring handlers on a Web Service client ? (Choose one) 

A. Specify the handlers in jaxws-catalog.xml and make it available in the classpath of the client 

B. Create a handlerchain as list of handlers and call setHandlerChain() with that list on the Binding object. 

C. Programmatically configure the handlers by setting a custom HandlerResolver on the service instance and create proxies from that service. 

D. Specify handlers in handler chain configuration XML file and add @HandlerChain referencing handler configuration file to the Web Service references for clients running in JavaEE Container. 

Answer:

Q48. A developer is tasked with analyzing a new Web services project and must decide to use either SOAP or REST. Based on requirements, the developer determines the service must be stateful and have a documented interface and data types that clients can discover dynamically. Which two statements are true? (Choose two.) 

A. The SOAP approach consists of resources identified by unique URIs. 

B. SOAP services are self-documenting via the WSDL. 

C. Either SOAP or REST are suitable for the Web service. 

D. REST fully documents data types via the functional interface GET and POST. 

E. RESTful services are stateless by definition. 

Answer: BE 

Q49. Given that a developer implemented a web service using Stateless Session EJB: 

If a web service client invokes increment web service method twice consecutively, what must be the returned value after the second invocation ? (Choose one) 

A. 0 

B. 1 

C. 2 

D. 3 

E. Undefined 

Answer:

Q50. Which two code fragments are valid for adding an attachment in SAAJ? (Choose two.) 

A. AttachmentPart attachment = 

request.createAttachementPart(); 

String stringContent = Update total; 

attachment.setContent(stringContent,text/plain); 

attachment.setContentID(update_total); 

request.addAttachmentPart(attachment); 

B. 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. Attachment attachment = 

request.newAttachement(); 

String stringContent = Update total; 

attachment.setContent(stringContent,text/plain); 

attachment.setContentID(update_total); 

request.setAttachment(attachment); 

Answer: AC