MCQs > IT & Programming > Web Services > Mike has built the following document literal web service client class by hand. This code contains an invalid syntax in one line. Identify this line.

Web Services MCQs

Mike has built the following document literal web service client class by hand. This code contains an invalid syntax in one line. Identify this line.

1. [WebServiceBinding("MyBinding", "http://MyNS")]

2. public class CustomWebMethods : SoapHttpClientProtocol

3. {

4.      public CustomWebMethods()

5.      {

6.            this.Url = "http://localhost:8080";

7.      }


8.      [DocumentMethod("http://mySoapAction")]

9.      public int Add( int x, int y)

10.     {

11.            Object[] args = {x, y};

12.            Object[] responseMessage = this.Invoke( "Add", args );

13.            return ((int)(responseMessage[0]));

14.      }

15.}

Answer

Correct Answer:

Line 8 

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Web Services Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Web Services Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it