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?
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?
You have created an XML schema for a Purchase Order service. The schema, named "po.xsd", is as follows:
Because you believe this schema will need to also be used in several different services, you decide to separate it from the WSDL definition by placing it into its own XML Schema definition. As a result, you now need to import the XML schema into the WSDL document. Which of the following code fragments shows a valid way to import the schema shown above into a WSDL "types" element?
You are developing the Document Management service that will be providing product catalog record management operations. Your first task is to create operations for the addition and deletion of product records from the catalog. The first operation needs to be able to add a product record and needs to receive a message based on the "addProduct" element. The second operation needs to be able to delete a product record and needs to receive a message based on the "deleteProduct" element. Both of these operations need to reply with a response message based on the same "catalogUpdateConfirmation" element-So far, you have developed the following schema (called "catalogManagement.xsd"), which declares the three needed elements:
Which of the following shows a WSDL definition that correctly incorporates this schema and fulfills the requirements for this service?
You have created an XML schema for a Purchase Order service. The schema, named "po.xsd", is as follows:
Because you believe this schema will need to also be used in several different services, you decide to separate it from the WSDL definition by placing it into its own XML Schema definition. As a result, you now need to import the XML schema into the WSDL document. Which of the following code fragments shows a valid way to import the schema shown above into a WSDL "types" element?
Currently there are no comments in this discussion, be the first to comment!