nerdexam
GIAC

GSSP-NET · Question #375

GIAC GSSP-.NET Exam Allen works as a Software Developer for ManSoft Inc. He develops a Web application using Visual Studio .NET. He adds a Web reference to an XML Web service named MyWebService in…

The correct answer is C. System.Web.Service.Protocols.SoapException. See the full explanation below for the reasoning.

Question

GIAC GSSP-.NET Exam Allen works as a Software Developer for ManSoft Inc. He develops a Web application using Visual Studio .NET. He adds a Web reference to an XML Web service named MyWebService in the application. MyWebService includes a method named MyMethod, which takes user identification number as a parameter and returns a DataSet object containing user information. The System.ArgumentException is thrown if the user identification number is not positioned between 1 and 500. Allen writes a try/catch block to capture the exceptions thrown by the Web service. Which of the following exceptions will the try/catch block catch if a user calls MyMethod passing 501 as a parameter?

Options

  • ASystem.ApplicationException
  • BSystem.ArgumentNullException
  • CSystem.Web.Service.Protocols.SoapException
  • DSystem.Web.Service.Protocols.SoapHeaderException

How the community answered

(38 responses)
  • A
    5% (2)
  • B
    5% (2)
  • C
    76% (29)
  • D
    13% (5)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice