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?
Correct : B
Start a Discussions
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.
Correct : A
Start a Discussions
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?
Correct : A
Start a Discussions
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
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:
Which of the following XML schemas will validate the two samples shown above?
Correct : C
Start a Discussions
You are working on building a new Electronic Publications service that allows users to retrieve electronic copies of online books for display on specialized electronic reading devices. This service needs to contain two operations:
1. An operation that retrieves an entire book. This operation needs to receive a message based on a pre-defined "addBookRequest" element and then reply with a message based on the "addBookAcknowledgement" element.
2. An operation that retrieves information that describes a book. This operation needs to receive a message based on a pre-defined "getBooklnfoRequest" element and then reply with a message based on the "getBooklnfoResponse " element.
Examples of these XML fragments based on these four elements are shown here:
You are now tasked with creating an XML schema that will correctly validate these four XML fragments. Which of the following is correct?
Correct : A
Start a Discussions