1.
Your company has developed a service that allows your customers to check the status of an order.
The schema for the service is shown here:
A new customer plans to use your service, but they want to test it first. They have asked for two sample
XML documents that show typical input and output message content. Which of the following pairs of XML elements will validate with the schema shown above?
2.
A partner organization has given you samples of XML documents retrieved from their product information database. The three samples they have sent you are:
Because they are an important partner, you have agreed to write a service to accept XML documents in their format. However, they did not send you a schema, so you are tasked with defining a schema that will correctly validate their documents. Which of the following XML schemas will successfully validate each of the above XML document fragments?
3.
Your company has developed a PO service that allows customers to submit purchase order documents.
The message sent by a customer must be based on a predefined "purchaseOrder" element and the message received by the customer is based on a "messageAcknowledgement" element. These two
elements are defined in the following two separate XML Schema definitions:
The "purchaseOrder.xsd" schema:
Note that these two schemas have different namespaces. That is because the "purchaseOrder.xsd" schema is specific to purchase order-related functions, while the "ack.xsd" schema is more generic and used for a variety of different purposes.
4.
Your developer is asked to build a Timesheet service that is able to receive timesheet submissions for an internal payroll system. Service consumers need to be able to send this service request message based on
a root "employeeHours" element within the SOAP message body. The "employeeHourse" element will contain "ernpID" and "hours" child elements. Furthermore, the service needs to return a message based on
a "response" element that contains "empID" and "status" child elements. Your developer comes to you with the following WSDL definition:
The only revision you suggest is that the value of the "style" attribute of the "soap: binding" element be changed to "document" instead of "rpc". Why?
5.
You are a consultant helping a large bank implement an on-line banking service for its customers. The first operation you need to build is one that allows a customer to initiate a transfer of funds. You are presented
with the following sample XML document that represents the funds transfer information that this operation needs to be able to receive:

< fromAccount>12345
< toAccount>44432
2000


You are also provided with the following sample that shows that the response message sent by the service needs to return a single element with text content:
SUCCESS
Which of the following XML schemas will validate the two samples shown above?
6.
A natural disaster has damaged the server that contained your service contracts. Many files on the server have been lost, but you have been able to partially recover some files using special disk recovery tools.
One of the WSDL definitions for a Postal service is mostly intact, except for the portType element, which has only been partially recovered.
The recovered WSDL definition looks as follows:
The "???" symbols indicate where data is missing. Your task is to reconstruct the "portType" element based on clues found in the rest of the WSDL document. Which of the following is correct?
7.
You have created the following WSDL definition to describe a PO service that accepts purchase orders submitted by customers:
However, when you try to use this WSDL definition, your system returns an error message stating that it is invalid due to a problem with namespaces. Which of the following revised WSDL definitions correct the problem?
8.
You are in the process of designing a service that manages content in a database of medical images. The service is able to add, update and delete images in the database. Each of these three functions requires a
separate message exchange with the service. Therefore, the XML schema for this service provides an
"addimage" element, an "updateimage" element and a "deleteimage" elements for the request messages, and separate "addlmageResponse," "updateimageResponse" and "deletelmageResponse" elements for the
response messages. Which of the following describes the minimum number of WSDL "message",
"operation", "portType", "binding", and "service" elements that the WSDL definition must have for this service?
9.
You have developed a Library service that provides an "AddBook" operation that is able to add a book record to a library system. This operation accepts a message based on an "AddBookRequest" element that
contains book record details, such as its author and title. It then responds with a message based on the
"AddBookResponse" element that acknowledges that the book was successfully added. Below is the current WSDL definition:
You are asked to extend this WSDL definition in order to add a new "DeleteBook" operation that is able to receive a request message based on the "DeleteBookRequest" element and reply with a response
message based on the "DeleteBookResponse" element. Which of the following describes the minimum number of message, operation and "portType" elements that will need to be added in order to fulfill these requirements?
10.
You are building the Balance Request service that allows customers to request their current account balance. You have developed the following schema (called "balanceRequest.xsd") to define the elements
used in the messages exchanged by the service:
The "balanceRequest" element is to be used as the basis of the request message sent by a customer to the service. The "balanceResponse" element is to be used as the basis of the response message sent out by the service. Which of the following WSDL definitions correctly describes this service?