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
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 create an XML schema for a Postal service that accepts an address and returns the corresponding postal code. You are given the following specific instructions as to how the XML schema should be designed:
* The XML schema requires two elements named "PostalCodeLookup" and "PostalCodeResponse".
* The "PostalCodeLookup" element must contain child elements named "address1", "address2," "city", "stateOrRegion" and "country", in that order. Each of these elements must have the type string.
* The "PostalCodeResponse" element must contain only the postal code as a string and this element must not have any child elements.
Which of the following XML schemas fulfills the requirements while also following the instructions?
Answer : C
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
You are asked to create an XML schema for an Address Formatting service that needs to be able to accept a mailing address and then return the same address rearranged in a different format defined by the postal service. You are given the following specific instructions as to how the XML schema should be designed:
* The XML schema requires two elements named "AddressLookup" and "AddressResponse".
* The "AddressLookup" element must contain child elements named "address1", "address21" "city". "stateOrRegion", "postalCode" "country", in that order. Each of these elements must have the type string.
* The "AddressResponse" has the same children as the "AddressLookup" message, plus it contains an "addressValid" element as its last child. This element is added to indicate whether a valid address was found, and therefore this element must be of type Boolean.
Which of the following XML schemas fulfills the requirements while also following the instructions?
Answer : C
Your company has developed an Articles service that will allow authors to submit article documents. The service currently provides a "SubmitArticle" operation that only accepts a request message but does not respond with a response message. The request message sent to the service is based on an "article" element that includes information about the article, as well as its content. Below are the "message" and "portType" elements from the current WSDL definition for the Articles service:
Authors have requested that this service be updated to issue an acknowledgement message as a response after an article is submitted. You are asked to make this update. You begin by adding an "art:acknowledgement" element to the XML schema. Now you must update the WSDL definition. Which of the following shows how the above "message" and "portType" elements are correctly updated to fulfill these requirements?
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