This preview shows page 98 - 100 out of 151 pages.
‘Code to retrieve flight information goes here. End Function You attempt to build EXFlightService, and discover that it does not compile. You need EXFlightService to compile. What should you do?A. Change the declaration of the keyHeader variable from public to private. B. Set the memberName parameter of the SoapHeader attribute to “keyHeader”. C. Set the Direction property of the SoapHeader attribute to SoapHeaderDirection.In. D. Set the Direction property of the SoapHeader attribute to SoapHeaderDirection.Out. Answer: B Explanation: In order for the XML Web service method to receive the contents of the SOAP header, a member is added to the XML Web service class of a type derived from SoapHeader. The SoapHeaderAttribute.MemberName contains the member of the XML Web service class representing the SOAP header contents. Reference: .NET Framework Class Library, SoapHeaderAttribute.MemberName Property
Exam Name: Developing XML Web Services & Server Components with MS Visual Basic .NET Exam Type: Microsoft Exam Code: 70-310 Total Questions: 223 Page 99 of 151 Incorrect AnswersA: Changing the declaration of keyHeader variable does not achieve much.C, D: TheSoapHeaderAttribute.Direction property gets or sets whether the SOAP header is intended for the XML Web service or the XML Web service client or both. This attribute is not the reason of the compile error..Question: 123 You Microsoft SQL Server database named XYZBackOrders that contains a table that consists of more than 1 million rows. You need to develop an application that reads each row in the table and writes the data to a flat file. The application will run only once each day. You want the application to process the data as quickly as possible. Which class should you use to retrieve the data?Reference: .NET Framework Developer's Guide, Retrieving Data Using the DataReader [Visual Basic] Incorrect AnswersA: Datasets is used when you want to work with a set of tables and rows while disconnected from the data source. It would not be optimal when accessing the amount of data in this scenario. Furthermore, only read-forward access is required.B: A Data table represents one table of in-memory data. D: The DataAdapter serves as a bridge between a DataSet and a data source for retrieving and saving data. Question: 124 Your Microsoft SQL Server database has a stored procedure that sums the total number of orders received each day. The stored procedure returns a result that is a single data value of type integer. You need to write code that will execute the stored procedure and return the result as an integer value. You instantiate a SqlCommand object named XYZCommand and initialize all appropriate parameters. Which XYZCommand method should you use?