Question: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.} 

A Line 1 

B Line 2 

C Line 8 

D Line 12 

E Line 13 

F None of these 

+ Answer
+ Explanation
+ Report
Total Preview: 585

Copyright © 2024. Powered by Intellect Software Ltd