Question:You create a Microsoft ASP.NET Web application by using the Microsoft .NET
Framework version 3.5.
You create an ASMX Web service in the application by using the following code segment. (Line numbers are included for reference only.)
01 [WebService(Namespace = "http://adatum.com/")]
02 [ScriptService]
03 public class PaymentService : WebService
04 { 06 [WebMethod]
08 public XmlDocument GetPaymentInformation()
09 {
10 XmlDocument payment =
11 Payment.GetPaymentInfo();
12 return payment;
13 }
14 }

You plan to invoke the PaymentService object from the client-script object by using ASP.NET AJAX. You need to ensure that the client-script object that is retrieved from the Web service represents a valid XmlDocument object.
Which code segment should you insert at line 07?

 

A [ScriptMethod] 

B [ScriptMethod(XmlSerializeString=true)] 

C [ScriptMethod(UseHttpGet=true)] 

D [ScriptMethod(ResponseFormat=ResponseFormat.Xml)] 

+ Answer
+ Report
Total Preview: 918

Copyright © 2024. Powered by Intellect Software Ltd