SOAP Flashcards
\_\_\_\_\_\_\_ types describe how elements are organized and nested. \_\_\_\_\_\_ types are the primitive data types contained by elements and attribute Select one: a. Simple, Complex b. Complex, Simple c. Simple, Simple d. Complex, Complex
b. Complex, Simple
In XML Schema, there is a basic difference between complex types which allow elements in their content and may carry attributes, and simple types which cannot have element content and cannot carry attributes.
“Contract First” web services are:
Select one:
a. The WSDL is written before the Java classes.
b. The same as the “Bottom-Up” approach
c. The binding and support classes are automatically generated with a SOAP tool instead of manually written by the developer.
d. Made with the JAX-RS API
a. The WSDL is written before the Java classes.
Are SOAP messages delivered using HTTP GET method or POST method?
Select one:
a. GET
b. POST
b. POST
Standard SOAP services are using only HTTP POST because they require complex SOAP request (XML) which cannot be included in query string.
How are exceptions handled in SOAP?
Select one:
a. Throwing the Exception object to the client JVM
b. Changing the HTTP error code in the HTTP response
c. None of the above
d. SOAP Fault is sent in SOAP message when exception is thrown, and includes fault code, reason, etc.
d. SOAP Fault is sent in SOAP message when exception is thrown, and includes fault code, reason, etc.
How are modeled faults mapped in the WSDL?
Select one:
a. The WSDL does not contain modeled faults
b. The portType tag contains all of the corresponding fault tags
c. The type tag contains a model of the Exception object, and the operation defines the fault
d. The message tag contains a part element mapped to the corresponding fault tag within the operation tag
d. The message tag contains a part element mapped to the corresponding fault tag within the operation tag
How do you consume a SOAP-based Web Service?
Select one:
a. Sending a raw XML document to the endpoint URL
b. Using the wsimport JDK command to generate the client stubs and invoke the service implementation
c. Neither of these
d. Both of these
b. Using the wsimport JDK command to generate the client stubs and invoke the service implementation
How do you expose a SOAP-based Web Service?
Select one:
a. Using wsgen tool in JDK and invoking Endpoint.publish(endpointURL, new ServiceImplementation( ) )
b. Both of these
c. Using Axis Web Service Deployment Descriptor (WSDD) format
d. Neither of these
b. Both of these
In what language is the SOAP message written? Select one: a. JSON b. Plain Text c. SOAP d. XML
d. XML
In what protocol are SOAP messages bound? Select one: a. HTTPS b. HTTP c. SMXP d. Any of the above e. BEEP
d. Any of the above
Is SOAP a stateless or a stateful protocol?
Select one:
a. Stateless
b. Stateful
a. Stateless
Stateful means that server stores information about the client and uses that information over a series of requests. So performing one request is dependant upon the state of some other request (e.g. previous).
Regarding the WSDL:
Select one:
a. It is a properties file
b. It is an xml document describing a web service
c. It is located in the ejb-jar.xml
b. It is an xml document describing a web service. It is a binding class generated with JAX-B
Soap is…
Select one:
a. White box
b. Lightweight
c. Only written in Java
d. Contract based
d. Contract based
SOAP messages contain \_\_\_\_\_\_\_\_\_; and REST messages contain \_\_\_\_\_\_\_\_\_\_\_. Select one: a. XML, XML b. XML, XML or JSON c. XML, JSON d. XML or JSON, XML or JSON
b. XML, XML or JSON
SOAP internally uses XML to send data back and forth. SOAP messages have rigid structure and the response XML then needs to be parsed. WSDL is a specification of what requests can be made, with which parameters, and what they will return.
RESTful web-services use standard URIs and methods to make calls to the web service. When you request a URI, it returns the representation of an object, that you can then perform operations upon (e.g. GET, PUT, POST, DELETE). You are not limited to picking XML to represent data, you could pick anything really (JSON included)
The \_\_\_\_\_ element of a WSDL defines an individual endpoint by specifying a single address for a binding. Select one: a. service b. portType c. binding d. port
d. port
The \_\_\_\_\_ element of the WSDL defines where to access the service, through which port to access the web service, and how the communication messages are defined. Select one: a. definitions b. service c. portType d. binding
b. service
The \_\_\_\_\_ element of the WSDL describes the data being exchanged between the web service providers and the consumers, including input and output for each Web Service (each denoted with the tag). Select one: a. message b. types c. binding d. portType
a. message