Your company is developing an Articles service that will encapsulate a legacy content management system. The existing content management system uses a proprietary XML vocabulary (called ArticleML). Each article record in the system is represented by an "article" element as shown here:
The new Articles service contract is able to continue using this XML document structure for article data it will exchange via request and response messages. However, the existing content management system was not designed to work with XML Schema. The proprietary article records were stored as XML documents but never validated using XML Schema. You are tasked with the responsibility of defining a WSDL definition with an embedded XML schema for the new Articles service. As a start, you are asked to create preliminary versions of the WSDL definition and XML schema so that they only define the first "message" element for the request message that submits an article record to the service, as per the example above. Which of the following accomplishes this?
Answer : C
You are asked to build a newTimesheet service that needs to provide centralized access to timesheet-related data access functions. Because the service delivery project team follows a "contract-first" approach when building any service, you and your group of developers are asked to create a WSDL definition that will need to import an existing "Employee.xsd" schem
a. Furthermore, in order to comply with established design standards and conventions, you are given the following instructions as to how the WSDL definition must be designed:
* It must contain a "message" element for the request message with the name "getWeeklyHoursRequestMessage". The "message" element must contain a "part" element that references the "EmployeeHoursRequestType" element defined in the imported XML schema.
* It must contain a "message" element for the response message with the name "getWeeklyHoursResponseMessage".The "message" element must contain a "part" element that references the "EmployeeHoursResponseType" element defined in the imported XML schema.
* It must contain a "portType" element called Timesheetlnterface" that contains an "operation" element called "GetWeeklyHoursLimit", an "input" element referencing the request message and an "output" element referencing the response message.Three of your junior developers take on this assignment. At the end of the day, each developer presents you with a different WSDL definition. Which of the following is a correctly designed WSDL definition that also complies with the above instructions?
Answer : B
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?
Answer : B
A partner organization has been trying to send an invoice XML document as part of a SOAP message to your Invoice service. The IT people at the partner organization are convinced that the invoice XML document is correctly structured and contains valid data. However, the SOAP message has been repeatedly rejected by your Invoice service. Someone from the partner organization e-mails you the following XML document fragment that was extracted from the SOAP message:
Subsequent to some further investigation, you determine that you are actually supporting four different versions of the Invoice WSDL definition, each with a different XML schema. Which of the following XML schemas will successfully validate the above XML document fragment?
Answer : C
You have written the following XML schema to describe a message that contains employee payroll information:
Your company's enterprise architecture team reviewed your schema to ensure that it conforms to internal design standards used for XML development. They have notified you that although your XML schema is technically correct, it must use the "xsd" prefix for the XML Schema namespace, rather than making it the default namespace. Which of the following revised XML schemas complies to this internal design standard while retaining its original meaning?
Answer : A
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?
Answer : A
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?
Answer : B