High quality of 1Z0-862 pdf exam materials and lab for Oracle certification for IT engineers, Real Success Guaranteed with Updated 1Z0-862 pdf dumps vce Materials. 100% PASS Java Enterprise Edition 5 Web Services Developer Certified Professional Exam exam Today!

2021 May 1Z0-862 Study Guide Questions:

Q61. Which two statements are true about JAXB? (Choose two.)

A. Developers must design and code JAXB classes, based on the XML schema.

B. JAXB represents a schema in memory after parsing it with the SAX API.

C. JAXB maps Java classes to a derived schema.

D. JAXP is a lightweight version of JAXB, and is preferred for mapping classes and XML in Java SE 6 applications.

E. JAXB provides reading and writing to manipulate XML using Java classes.

Answer: CE


Q62. A developer is using SAAJ to create a new SOAP message and access the header and body. Which lines of code will accomplish this?

A. 1. //Creating a SOAP message

2. MessageFactory factory = MessageFactory.newInstance();

3. SOAPMessage request = factory.newMessage();

4. //Accessing elements of the message

5. SOAPPart soapPart = request.getSOAPPart();

6. SOAPEnvelope envelope = soapPart.getSOAPEnvelope();

7. SOAPHeader header = envelope.getSOAPHeader();

8. SOAPBody body=envelope.getSOAPBody();

B. 1. //Creating a SOAP message

2. MessageFactory factory = MessageFactory.newInstance();

3. SOAPMessage request = factory.new(Message());

4. //Accessing elements of the message

5. SOAPPart soapPart = request.getSOAPPart();

6. SOAPEnvelope envelope = soapPart.getEnvelope();

7. SOAPHeader header = envelope.getHeader();

8. SOAPBody body=envelope.getBody();

C. 1. //Creating a SOAP message

2. MessageFactory factory = MessageFactory.newInstance();

3. SOAPMessage request = factory.createMessage(); 4. //Accessing elements of the message

5. SOAPPart soapPart = request.getSOAPPart();

6. SOAPEnvelope envelope = soapPart.getEnvelope();

7. SOAPHeader header = envelope.getHeader();

8. SOAPBody body=envelope.getBody();

D. 1. //Creating a SOAP message

2. MessageFactory factory = MessageFactory.newInstance();

3. SOAPMessage request = factory.createMessage();

4. //Accessing elements of the message

5. SOAPPart soapPart = request.getSOAPPart();

6. SOAPEnvelope envelope = soapPart.getSOAPEnvelope();

7. SOAPHeader header = envelope.getSOAPHeader();

8. SOAPBody body=envelope.getSOAPBody();

E. 1. //Creating a SOAP message

2. MessageFactory factory = MessageFactory.newInstance();

3. SOAPMessage request = factory.createMessage();

4. //Accessing elements of the message

5. SOAPPart soapPart = request.getPart();

6. SOAPEnvelope envelope = soapPart.getEnvelope();

7. SOAPHeader header = envelope.getHeader();

8. SOAPBody body=envelope.getBody();

Answer: C


Q63. Given the Java fragment and schema:

1. //-- Java code fragment

2. public enum USState {MA, NH}

3. //-- Schema fragment

4. <xs:simpleType name=xsState?

5. <xs:restriction base=xs:string?

6. <xs:enumeration value=NH?/>

7. <xs:enumeration value=MA?/>

8. </xs:restriction>

9. </xs:simpleType>

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.

Answer: A


1Z0-862 exams

Most up-to-date 1Z0-862 test engine:

Q64. A developer created a Web service client that sends requests to the company's inventory service. The quality assurance team reports a problem during testing. The client does not work in some cases and the QA team reports that the client is sending malformed SOAP messages. The software is returned to the developer for resolution. What is the result?

A. One or more class cast exceptions are returned in a SOAP message.

B. A SOAP fault that surfaces as a HTTPException because SOAP is serializable.

C. A SOAP fault surfaces as a SOAPFaultException.

D. A generic exception results because Java details are not to be mingled with SOAP.

Answer: C


Q65. A developer must describe a message that contains multiple parts using non-primitive data types. Which two code fragments produce equivalent composite message structure definitions? (Choose two.)

A. <types>

<schema .... >

<complexType name="FOO" type="tns:FOOType"/>

<element name="FOOType">

...

</element >

<complexType name="BAR" type="tns:BARType"/>

<element name="BARType">

...

</element >

</schema>

</types>

<message name="FOO">

<part name="FOO" complexType="tns:FOO"/>

<part name="BAR" complexType="tns:BAR"/>

</message>

B. <types>

<schema .... >

<element name="FOO" type="tns:FOOType"/>

<complexType name="FOOType">

...

</complexType>

<element name="BAR" type="tns:BARType"/>

<complexType name="BARType">

...

</complexType>

</schema>

</types>

<message name="FOO">

<part name="FOO" element="tns:FOO"/>

<part name="BAR" element="tns:BAR"/>

</message>

C. <types>

<schema .... >

...

<complexType name="Composite">

<choice>

<element name="FOO" minOccurs="1" maxOccurs="1" type="tns:FOOType"/> <element name="BAR" minOccurs="0" maxOccurs="unbounded" type="tns:BARType"/>

</choice>

</complexType>

</schema>

</types>

<message name="FOO">

<part name="composite" type="Composite"/>

</message>

D. <types>

<schema .... >

...

<complexType name="Composite">

<choice>

<element name="FOO" minOccurs="1" maxOccurs="1" type="tns:FOOType"/> <element name="BAR" minOccurs="0" maxOccurs="unbounded" type="tns:BARType"/>

</choice>

</complexType>

</schema>

</types>

<message name="FOO">

<part name="composite" type="tns:Composite"/>

</message>

Answer: BD


Q66. A team of engineers is using JAX-WS to implement both RESTful and SOAP Web services. Which two exception classes will they use? (Choose two.)

A. javax.xml.ws.soap.SOAPException

B. javax.xml.ws.soap.SOAPFaultException

C. javax.xml.ws.soap.FaultException

D. javax.xml.ws.http.HTTPException

E. javax.xml.ws.http.HTTPFaultException

F. javax.xml.ws.http.FaultException

Answer: BD


1Z0-862 exam prep

Verified 1Z0-862 preparation labs:

Q67. Which two statements are true about the WSDL 1.1 part element? (Choose two.)

A. Global schema complexTypes must be referenced by the type attribute.

B. Global schema complexTypes must be referenced by the complexType attribute.

C. Global schema elements must be referenced by the type attribute.

D. Global schema simple types must be referenced by the element attribute.

E. Global schema elements must be referenced by the element attribute.

Answer: AE


Q68. A developer is reviewing requirements prior to design of a new system, based on Web services. The requirements state the users of the company's financial systems need extensible request/response messaging. Which two statements are true? (Choose two.)

A. HTTP is required because SOAP is not extensible without it.

B. FTP is appealing because it supports two-way communication with SOAP.

C. SOAP messages can be multicast with SMTP.

D. HTTPS is supported for financial transactions, but is not recommended for large groups of users.

E. SOAP could be combined with XML encryption and MTOM to help meet the requirements.

Answer: CE


Q69. Which statement is true about the mapping of a UDDI tModel in the JAXR 1.0 specification?

A. JAXR APIs cannot be used with a UDDI registry using tModels.

B. UDDI tModels are mapped to the JAXR ServiceBinding interface.

C. UDDI tModels are mapped to JAXR ServiceBinding and JAXR Organization.

D. UDDI tModels are mapped to JAXR ClassificationScheme and JAXR Concept.

Answer: D


Q70. A team of developers is working with UDDI. They use the delete_tModel function to remove a tModel. Which three statements are true about the delete_tModel? (Choose three.)

A. The delete_tModel physically deletes the tModels.

B. The deleted tModels still appear in the results returned by find_tModel.

C. The deleted tModels are omitted from any results returned by find_tModel.

D. An authentication token is required.

E. An authentication token is recommended.

F. If any error occurs in processing this API call, a tModelError element will be returned to the caller within a SOAP Fault.

G. If any error occurs in processing this API call, a dispositionReport element will be returned to the caller within a SOAP Fault.

Answer: CDG