Pass4sure 1Z0-897 Questions are updated and all 1Z0-897 answers are verified by experts. Once you have completely prepared with our 1Z0-897 exam prep kits you will be ready for the real 1Z0-897 exam without a problem. We have Down to date Oracle 1Z0-897 dumps study guide. PASSED 1Z0-897 First attempt! Here What I Did.

Q21. Which two statements are true about creating a Web service with JAX-WS? (Choose two.) 

A. Stateless Web services must be created with HTTP servlet endpoints. 

B. Creating the portable artifacts by hand is slow, but makes a service easier to maintain. 

C. All Java-based endpoints share a common packaging model. 

D. EJBs can serve as endpoints if hosted in a container with runtime and service support. 

E. JAX-WS supports creating services from source and compiled code without a WSDL. 

Answer: DE 


Q22. Which two statements are true about WSIT client development and using the WSIT configuration file? (Choose two.) 

A. Client configuration files do NOT contain information security features, such as authentication. 

B. The file contains the URL for the WSDL. 

C. To maintain interoperability, the configuration file must not name packages. 

D. A WSIT client uses the file as a WSDL proxy is available from any WSIT compliant service. 

E. The wsimport tool uses the file to access the WSDL and build stubs to access a service. 

Answer: BE 


Q23. What is an advantage of enabling Addressing feature on an endpoint? 

A. Addressing ensures reliable transfer of messages between client address and the service address. 

B. Addressing ensures the message exchanges between the client and service are properly secured. 

C. Addressing enables the optimization of messages exchanged between the client and the service. 

D. Addressing provides transport-neutral way to address the endpoints and messages. 

Answer:


Q24. A developer wants to use WebServiceContext in the web service endpoint. Which of the following is the correct way to get WebServiceContext object ? (Choose one) 

A. @WebService 

public class MyService { 

@WebServiceContext 

WebServiceContext ctxt; 

public String echo(String str) { 

... 

B. @WebService 

public class MyService { 

WebServiceContext ctxt; 

public String echo(String str) { ctxt = jndi.lookup("java:com/env/WebServiceContext"); } 

C. @WebService 

public class MyService { 

@Inject 

WebServiceContext ctxt; 

public String echo(String str) { 

... 

D. @WebService 

public class MyService { 

@Resource 

WebServiceContext ctxt; 

public String echo(String str) { 

... 

Answer:


Q25. 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:


Q26. 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:


Q27. A team of developers is describing a set of endpoints in their new SOA application. Given the WSDL extract: 

Which statement is true about this WSDL extract? 

A. The extract is WS-I Basic Profile 1.1 compliant because both port element names are different. 

B. The extract is NOT WS-I Basic Profile 1.1 compliant because both port elements point to the same location. 

C. The extract is WS-I Basic Profile 1.1 compliant because both port elements point to different binding elements. 

D. The extract is NOT WS-I Basic Profile 1.1 compliant because it contains two port elements in the same service. 

Answer:


Q28. Which of the following option represents the behavior of the endpoint, when the addressing feature is enabled on the service with the use of @Addressing() annotation. 

A. The endpoint accepts only messages containing Addressing headers and rejects any messages not containing Addressing headers. 

B. The endpoint accepts any messages with or without any Addressing headers and does not validate addressing headers because "required" annotation element is not true. 

C. The endpoint accepts messages only if the messages contain wsa:Action header but does not require presence of any other addressing headers. 

D. The endpoints accepts messages with or without addressing headers. If the message contains wsa:Action header, it validates all other addressing headers in the message. 

Answer:


Q29. 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:


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

Answer: