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 asked to build a newTimesheet service that needs to provide centralized access to timesheet-related data access functions. Because the service delivery project team follows a "contract-first" approach when building any service, you and your group of developers are asked to create a WSDL definition that will need to import an existing "Employee.xsd" schem
a. Furthermore, in order to comply with established design standards and conventions, you are given the following instructions as to how the WSDL definition must be designed:
* It must contain a "message" element for the request message with the name "getWeeklyHoursRequestMessage". The "message" element must contain a "part" element that references the "EmployeeHoursRequestType" element defined in the imported XML schema.
* It must contain a "message" element for the response message with the name "getWeeklyHoursResponseMessage".The "message" element must contain a "part" element that references the "EmployeeHoursResponseType" element defined in the imported XML schema.
* It must contain a "portType" element called Timesheetlnterface" that contains an "operation" element called "GetWeeklyHoursLimit", an "input" element referencing the request message and an "output" element referencing the response message.Three of your junior developers take on this assignment. At the end of the day, each developer presents you with a different WSDL definition. Which of the following is a correctly designed WSDL definition that also complies with the above instructions?
A partner organization has been trying to send an invoice XML document as part of a SOAP message to your Invoice service. The IT people at the partner organization are convinced that the invoice XML document is correctly structured and contains valid data. However, the SOAP message has been repeatedly rejected by your Invoice service. Someone from the partner organization e-mails you the following XML document fragment that was extracted from the SOAP message:
Subsequent to some further investigation, you determine that you are actually supporting four different versions of the Invoice WSDL definition, each with a different XML schema. Which of the following XML schemas will successfully validate the above XML document fragment?
Your company has developed an Articles service that will allow authors to submit article documents. The service currently provides a "SubmitArticle" operation that only accepts a request message but does not respond with a response message. The request message sent to the service is based on an "article" element that includes information about the article, as well as its content. Below are the "message" and "portType" elements from the current WSDL definition for the Articles service:
Authors have requested that this service be updated to issue an acknowledgement message as a response after an article is submitted. You are asked to make this update. You begin by adding an "art:acknowledgement" element to the XML schema. Now you must update the WSDL definition. Which of the following shows how the above "message" and "portType" elements are correctly updated to fulfill these requirements?
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?