Question: 1
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?
Question: 2
The technical architecture department contacts you to tell you that all existing WSDL definitions need to be modified to add an additional concrete description in order to bind the service to a new version of SOAP. You begin with the WSDL definition for the Notification service, as shown here:
Given the fact that this WSDL definition has only one "operation" element, which new elements will need to be added in order to add the concrete description described above?
Question: 3
Your developer is asked to build a Timesheet service that is able to receive timesheet submissions for an internal payroll system. Service consumers need to be able to send this service request message based on a root "employeeHours" element within the SOAP message body. The "employeeHourse" element will contain "ernpID" and "hours" child elements. Furthermore, the service needs to return a message based on a "response" element that contains "empID" and "status" child elements. Your developer comes to you with the following WSDL definition:
The only revision you suggest is that the value of the "style" attribute of the "soap: binding" element be changed to "document" instead of "rpc". Why?
Question: 4
Your developer is asked to build a Timesheet service that is able to receive timesheet submissions for an internal payroll system. Service consumers need to be able to send this service request message based on a root "employeeHours" element within the SOAP message body. The "employeeHourse" element will contain "ernpID" and "hours" child elements. Furthermore, the service needs to return a message based on a "response" element that contains "empID" and "status" child elements. Your developer comes to you with the following WSDL definition:
The only revision you suggest is that the value of the "style" attribute of the "soap: binding" element be changed to "document" instead of "rpc". Why?
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?