位置:首页 > 题库频道 > 其它分类 > 计算机其它 > 微软MCAD 70-310 实战百题

You create an XML Web service project that consists of three services named BronzeService, SilverService, and GoldService. All three services are located in the same virtual directory on a production computer. When customers subscribe to your service, they select only one of the three available services.A new customer subscribes to SilverService. You need to create a discovery document that enables this customer to use only SilverService .Which discovery document should you create?

发布时间:2021-12-25

A.

B.

C. 〈exclude path=w__vti_cnf" />^exclude path= "_vti_log'* />

D. 〈exclude path""一vti一cnf" />〈exclude path=nBron2eServic

E.asmxn />〈exclude path="GoldService.asmx" />

试卷相关题目

  • 1You are creating a .NET Remoting object named Payroll. The Payroll class allows remote client applications to access payroll data for your company. Client applications are developed by using Windows Forms and Web Forms.You must ensure that remote client applications are securely authenticated prior to gaining access to Payroll object. You want to accomplish this task by writing the minimum amount of code.What should you do?

    A.Use a TcpChannel and a Binary Format ter for the Payroll class

    B.Use an HttpChannel and a SoapFormatter for the Payroll class

    C.Host the Payroll class in Internet Information Services(IIS) and implement Basic authentication.

    D.Host the Payroll class in Internet Information Services(IIS) and implement Integrated Windows authentication

    开始考试点击查看答案
  • 2You are preparing to deploy an XML Web service named InventoryService. This service queries a Microsoft SQL Server database and returns information to the caller.You use Visual Studio .NET to create a setup project. You need to install InventoryService. You also need to run a script to create the necessary SQL Server database and tables to store the dat

    A.To accomplish this, you need to configure the project to have administrator rights to the SQL Server database.You add a custom dialog box to the project that prompts the user for the administrator user name and password that are used to connect to the SQL Server database. You need to make the user name and password available to a custom Installer class that will execute the script.What should you do?A.Add a launch condition that passed the user name and password to the Install subroutine

    B.Add a merge module to the project that captures the user name and password. Use the merge module to access these values in the Install subroutine

    C.Retrieve the user name and password from the saved State objectin the Install subroutine

    D.Create a custom install action. Set the CustomActionData property to the entered user name and password. Then access these values in the Install subroutine

    开始考试点击查看答案
  • 3You are debugging a visual studio . Net application. The application produces an Xml documents object and then consumes the same object. This object moves data in the application. The object has no schema, but it contains a declaration line that you must inspect.You decide to transform the XML code and its declaration into a string for easy inspection.What should you do?

    A.Assign the ToString method of the Xml Document object to astring variable

    B.Assign the OuterXml property of the XmlDocument object to a string variable

    C.Assign the OuterXml property of the DocumentElement property of the XmlDocument object to a string variable

    D.Use the WriteContentTo method of the XmlDocument object to write the document into a MemoryStream object. Use the GetXml method of the DataSet object to get a string version of the document

    开始考试点击查看答案
  • 4You are creating an ASP.NET application named MyWebApp. To MyWebApp, you add a Web reference to an XML Web service named UserService. UserService consists of a Web method named RetrieveUserInfo. This Web method takes a userlD as input and returns a DataSet object containing user information. If the userlD is not between the values 1 and 1000, a System ArgumentException is thrown.In MyWebApp, you write a try/catch block to capture any exceptions that are thrown by UserService. You invoke RetrieveUserlnfo and pass 1001 as the userlD.Which type of exception will be caught?

    A.System.ApplicationExceptionB . System.ArgumentExceptionC . System.We

    B.Service.Protocols.SoapExceptionD. System.Web.Service.Protocols.SoapHeaderException

    开始考试点击查看答案
  • 5You create a Windows service named FxListener that performs financial transactions by using files in a drop directory. When a new XML file appears in the drop directory, FxListener opens the file and performs the financial transaction contained within the XML code.You want updates to each XML file to be logged in the Windows application log. A String object named myMessage contains the message to be logged.Which code segment should you use?

    A.EventLog.WriteEntry("FxListener", myMessage)

    B.Dim log As New EventLog("Application") log.WriteEntry(myMessage)

    C.Dim log As New EventLog("Application")Trace•WriteLine(log, myMessage)

    D.Dim log As New EventLog("FxListener") log.Source = "Application"log.WriteEntry(myMessage, EventLogEntryTyp

    E.SuccessAudit)

    开始考试点击查看答案
  • 6You are creating a Windows-based application named WinAppl. To the application, you add a Windows Form named Forml and a reference to a SingleCal 1 .NET Rernoting object named TheirObject.You need to ensure that Forml creates an instance of TheirObject to make the necessary remote object calls.Which code segment should you use?

    A.RemotingConfiguration.RegisterActivatedClientType ( —GetTy pe (TheirObject),"http://YourServer/TheirAppPath/TheirObject.rem")Dim theirObject As New TheirObject()

    B.RemotingConfiguration.RegisterWellKnownClientType( _GetTy pe(TheirObject),"http://YourServer/TheirAppPath/TheirObje ct.rem")Dim theirObject As New TheirObject ()

    C.RemotingConfiguration.RegisterActivatedServiceType( _GetT ype(TheirObject),Dim theirObject As New TheirObject ()

    D.RemotingConfiguration.RegisterWellKnownServiceType( _GetT ype(TheirObject),"http://YourServer/TheirAppPath/TheirObj ect. rem" , _WellKnownObjectMode . Singleton) Dim theirObject AsNew TheirObject()

    开始考试点击查看答案
  • 7You create a .NET Remoting object named Patientinfo that exposes medical patient information. Because of the confidential nature of the information, you must ensure that the data remains secure.You want client applications to connect to Patientinfo over a secure communication channel. You want to accomplish this task by writing the minimum amount of code.What should you do?

    A.Create your own host application and use a TcpChannel and BinaryFormatter

    B.Create your own host application and use an HttpChannel and a SoapFormatter

    C.Install Patientinfo in an Internet Information Services (IIS) virtual directory. Configure Patientinfo to use a TcpChannel and a BinaryFormatter. Configure IIS to use SSL

    D.Install Patientinfo in an Internet Information Services (IIS) virtual directory. Configure Patientinfo to use an HttpChannel and a SoapFormatter. Configure IIS to use SSL

    开始考试点击查看答案
  • 8You create a serviced component named Scheduler. Scheduler isregistered in a library application. The Scheduler methods parseString objects into Date Time objects.You write a console application named Coverage.exe to test eachmethod in Scheduler. You want Coverage.exe to test Scheduler formultiple cultures to verify its globalization support.What should you do?

    A.Create a Culturelnfo object for each culture locale beforecalling the Scheduler methods

    B.Create a Regionlnfo object for each culture locale beforecalling the Scheduler methods

    C.Set the current thread's CurrentCulture property to eachculture locale before calling the Scheduler methods

    D.Create a Coverage .ex

    E.config file and add a element to the configuration file for each culture locale

    开始考试点击查看答案
  • 9You create an XML Web service named YourService. You must ensure that this service meets the following URL authorization requirements .0 Anonymous access must be disabled for YourService.® An authenticated user named Userl cannot access YourService. 0 All other authenticared users can access YourService.You configure Internet Information Services(IIS) to meet these requirements. You now need to configure the authorization section in the Web.config file to properly authorize the users.Which code segment should you use?

    A.

    B.

    C.

    D. 开始考试点击查看答案

  • 10You have a .NET Remoting object named BatchOrder. The BatchOrder class allows remote client applications to submit orders in batches .Each BatchOrder object holds state information that is specific to each remote client application. The BatchOrder class has overloaded constructors for initializing an object.You want to develop a server application to host BatchOrder objects. What should you do?

    A.Create a Windows service, and register BatchOrder as a client- activated object

    B.Create a Windows service, and register BatchOrder as a server- activated Singleton object

    C.Host BatchOrder in Internet Information Services (IIS) and create a Web.config file to register BatchOrder as a server- activated SingleCall object

    D.Host BatchOrder in Internet Information Services (IIS) and create a Web.config file to register BatchOrder as a server- activated object with an infinite lease

    开始考试点击查看答案
返回顶部