nerdexam
GIAC

GSSP-.NET · Question #284

(Topic 3) You work as a Software Developer for ABC Inc. You create a Web service named MyWebService using Visual Studio .NET. You implement a public Web method. You make the method accessible…

The correct answer is A. Include an @PreviousPageType directive in the target page. Set the VirtualPath. You work as an Enterprise Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Web application using .NET Framework 3.5. You use cross-page posting to redirect users to another page. You want to access…

Database & Application Auditing

Question

  • (Topic 3)

You work as a Software Developer for ABC Inc. You create a Web service named MyWebService using Visual Studio .NET. You implement a public Web method. You make the method accessible through a Web service application by attaching the WebMethod attribute to the public method. The public method is stored in the class file of the Web service file. When you create a Web service project using the Web service project template, by default, one public method named HelloWorld is created. The HelloWorld public method does not become available through the Web service until you attach the WebMethod attribute. The method must be applied to each method declaration. Now, you want to configure a Web service method. You want to ensure that the Web method performs updates on more than one databases or if the sequence of updates is critical to the overall success of the Web method. Which of the following properties will you use to accomplish this task?

Options

  • AInclude an @PreviousPageType directive in the target page. Set the VirtualPath
  • BInclude an @Master directive in the target page.
  • CInclude an @PreviousPageType directive in the target page and set the VirtualPath
  • DInclude an @Register directive in the target page that references the source page.

How the community answered

(22 responses)
  • A
    82% (18)
  • B
    5% (1)
  • C
    9% (2)
  • D
    5% (1)

Explanation

You work as an Enterprise Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Web application using .NET Framework 3.5. You use cross-page posting to redirect users to another page. You want to access the public property values from the source page in the target page. Which of the following actions can you perform to accomplish the task? Each correct answer represents a complete solution. Choose all that apply. attribute to the path of the source page and set the TypeName attribute to the type name of the previous page. attribute to the path of the source page.

Topics

#ASP.NET#web services#WebMethod attribute#ASMX

Community Discussion

No community discussion yet for this question.

Full GSSP-.NET Practice