Exam Code: 1Z0-897 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam
Certification Provider: Oracle
Free Today! Guaranteed Training- Pass 1Z0-897 Exam.

2016 Jun 1Z0-897 Study Guide Questions:

Q11. Given that StockQuoteService is a Service class and StockQuoteProvider is a corresponding SEI for a web service. Which of the following options enable MTOM feature for proxy for the StockQuoteProvider SEI ? (Choose one) 

A. proxy = new StockQuoteService().getStockQuoteProvider() 

B. proxy = new StockQuoteService().getStockQuoteProvider(new MTOMFeature()) 

C. proxy = new StockQuoteService(new MTOMFeature()).getStockQuoteProvider() 

D. proxy = new StockQuoteService().getStockQuoteProvider(new RespectBindingFeature()) 

Answer: B 


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


Q13. Which two statements are true about the I-Stack and annotations technologies? (Choose two.) 

A. With 64-bit Java, JAXB compatible parameters are preferred for performance. 

B. @WebMethod is required for private methods, but public methods are exposed in any service automatically. 

C. Declaring business methods final is a good way to protect the integrity of the implementation class. 

D. Method parameters and return types must be compatible with the JAXB 2.0. 

E. JAX-WS uses annotations to invoke Web service requests at runtime. 

Answer: DE 


certifyforall.com

Latest 1z0-053 latest dumps:

Q14. In the code fragment below, the client will use os to upload data to the web service provider. 


Choose the statement that must be placed in line 5, to ensure this fragment works as intended. (Choose one) 

A. connection.setDoOutput(true); 

B. connection.setAllowUserInteraction(true); 

C. connection.setIfModifiedSince(new Date().getTime()); 

D. connection.setUseCaches(false); 

Answer: A 


Q15. HTTP clients can provide authentication information to the server via the "Authorization" header in the HTTP request. Choose the alternative, if any, that would serve as the definition for a resource method that would allow a JAX-RS resource to obtain this authentication data (Choose one): 

A. It is impossible for a JAX-RS resource to obtain this information, since low-level HTTP data is not presented to the JAX-RS application layer. 

B. @GET @Path("/authInfo") 

public String getAuthInfo( String authenticate ) { 

return authenticate; 

C. @GET @Path("/authInfo/{AUTHENTICATE}") 

public String getAuthInfo( 

@PathParam("Authorization") String auth ) { 

return authenticate; 

D. @GET @Path("/authInfo") 

public String getAuthInfo( 

@HeaderParam("Authorization") String auth ) { 

return authenticate; 

Answer: D 


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

Answer: BDG 


1Z0-897  training

Download 1z0-053 exam dumps:

Q17. A developer creates the following web service: Assuming that he packages the class in a war file without deployment descriptors, the web service is hosted by a EE container relative to module context at ? (Choose one) 


A. "/Invoice" 

B. "/InvoicePort" 

C. "/InvoiceService" 

D. "/InvoiceWebService" 

Answer: C 


Q18. An organization has business logic implemented in EJB components. Current clients use container-managed, role-based security to access the business logic using RMI. Management has determined that the business logic must be made available to non-RMI clients using a Web service. 

Which container-managed Web service security mechanism would the development team? use to allow Web service clients to use the current security model? (Choose one) 

A. XKMS 

B. XACML 

C. XML Digital Signature 

D. HTTP Basic Authentication 

E. annotations mapped to the JAX-WS runtime 

Answer: D 


Q19. A company is building a customer relationship management system that is to be deployed on a customer's network, and they want software functions to be reused and combined in different modules in the system. The Director of Technology has determined that the new system should utilize both Web services and a Service Oriented Architecture (SOA). Which two statements about Web services in an SOA are correct? (Choose two.) 

A. A Web service must be discovered from a UDDI registry in an SOA. 

B. SOA and Web services both use the HTTP protocol at the transport layer. 

C. A Web service must publish itself to a UDDI registry to become part of an SOA. 

D. SOA is a way to design a system and Web services are a possible implementation. 

E. SOA is used for stateless invocations, and Web services for stateful invocations. 

F. SOA emphasizes the concept of service encapsulation and Web services fulfill a service contract. 

Answer: DF 


Q20. Given stock quote web service endpoint: 


and the corresponding client side artifacts for the above web service are : 

StockQuoteService is the Service class and StockQuoteProvider is the corresponding SEI. 

Which of the following two options enable addressing feature for proxy for the StockQuoteProvider SEI ? (Choose two) 

A. proxy = new StockQuoteService().getStockQuoteProvider() 

B. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature()) 

C. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false)) 

D. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false, true)) 

Answer: AB