Your IT department has decided to take a "WSDL-first" approach to building services. They took this quite literally, and developed a WSDL definition before there was a corresponding XML schema to define the message structures. The following WSDL definition was created:

You are given the task of developing an XML schema that defines two messages to work with the WSDL definition shown above. The first message requests a price from the product catalog based on a "productID" element that is a string. The second message is the response, and it returns both the same "productID" element, as well as the price in a "currentPrice" element that is of type decimal. Which of the following schemas accomplishes this?

Answer : C
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?
Answer : D
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?

Answer : D
You work for a local police department and you just finished building a new Crime Search service that allows police detectives to search a criminal database based on personal traits. The service returns identifying information for people that best meets the search criteri
a. The schema for the service is shown here:

A police department in a neighboring region wants to start using the Crime Search service. To help them build a service consumer program that will be able to interact with the service, they have requested that you provide them with two sample XML documents that show typical input and output message data. Which of the following pairs of XML elements will validate with the schema shown above?

Answer : B
You are asked to create an XML schema and WSDL definition for a Customer Lookup service. The service accepts a customer name and returns the corresponding customerID. You are given the following specific instructions as to how the XML schema should be designed:
* Two elements named "CustomerLookup" and "CustomerResponse" are required.
* The "CustomerLookup" element will be used to represent the request message sent to the service. It must have a child element named "customerName" that has the type string.
* The "CustomerResponse" element will be used to represent the response message sent out by the service. It must have a child element named "customerID" that has the type integer.
Which of the following WSDL definitions correctly describes these messages?


Answer : A
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?

Answer : A
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?



Answer : B