Question: 1
You have created the following XML Schema definition for a new Invoice Reporting service:
The Invoice Reporting service needs to represent invoice data in a unique format. Therefore, this schema will only be used by the WSDL definition for the Invoice Reporting service. As a result, you decide to embed the schema inside the WSDL definition. Which of the following shows a valid way to accomplish this?
Question: 2
You are working with an Authentication service that submits user credentials for authentication purposes. Atypical XML document passed to the service looks like this:
You are contacted by the IT department manager and told that from now on, all XML documents that are passed to and from services must have a namespace in order to more easily identify their related XML schema definitions. You revise the above sample document by adding a namespace declaration, as well as prefixes to the "user" element, as shown here:
Assuming the "date" element is of type date, the "login" element is of type string, and the "password" element is of type hexBinary, which of the following XML schemas will correctly validate the revised sample?
Question: 3
Your organization uses an internal HR service that allows other services to update employee dat
a. Currently, the HR service has only one "UpdateEmployee" operation that receives a message with an "emp:updateEmployee" element containing the employee record, and then responds with a message with an "emp:updateEmployeeResponseM element that indicates whether the operation was successful. Below is a fragment from the current WSDL definition that shows the relevant "message", "portType" and "operation" elements:
You are asked to add a new "DeleteEmployee" operation to the WSDL definition that is capable of receiving a message with a "emp:deleteEmployee" element and then responding with a message that contains the "emp:deleteEmployeeResponse" element. Which of the following accomplishes this?
Question: 4
You have developed the following WSDL definition for the Product Notification service that needs to be able to notify customers every time a new product is added to a product catalog:
The service has a "ProductNotification" operation that receives a request message containing product information. The receipt of this request message triggers the issuance of a notification to customers. This operation does not issue a response message. Your next task is to define the concrete description for this WSDL definition and you start with the "binding" element. Which of the following represents the correct "binding" element for this WSDL definition?
Question: 5
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?