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?
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?
Your company has developed a PO service that allows customers to submit purchase order documents. The message sent by a customer must be based on a predefined "purchaseOrder" element and the message received by the customer is based on a "messageAcknowledgement" element. These two elements are defined in the following two separate XML Schema definitions:
The "purchaseOrder.xsd" schema:
Note that these two schemas have different namespaces. That is because the "purchaseOrder.xsd" schema is specific to purchase order-related functions, while the "ack.xsd" schema is more generic and used for a variety of different purposes.
You are a consultant helping a large bank implement an on-line banking service for its customers. The first operation you need to build is one that allows a customer to initiate a transfer of funds. You are presented with the following sample XML document that represents the funds transfer information that this operation needs to be able to receive:
< fromAccount>12345
< toAccount>44432
You are also provided with the following sample that shows that the response message sent by the service needs to return a single element with text content:
Which of the following XML schemas will validate the two samples shown above?
You are asked to create an XML schema for an Employee service that is required to search an HR database in order to retrieve the maximum number of hours an employee is authorized to work within a week. You are given the following specific instructions as to how the XML schema should be designed:
* Add two complex types wrapped in "element" elements named "EmployeeHoursRequestType" and "EmployeeHoursResponseType"
* The "EmployeeHoursRequestType" element must contain a child "ID" element of type integer. The "EmployeeHoursResponseType" must contain a child "ID" element of type integer, and a child "WeeklyHoursLimit" element of type short.
* The "xsd" prefix needs to be used for all XML Schema language elements.
Which of the following XML schemas fulfills the requirements while also following the instructions?