how to use web services with code?(with example code)



how to use web services with code?(with example code)..

Answer / nithya

First we need to create webmethod in webservice.
And we need to expose the webmethod as wsdl file.

Who wants to consume those webmethod they have to create a
class file by using wsdl tag in dotnet command prompt.

once the class file has been created and we can create
instance for that and start accessing all the methods from
the class file.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What tags do you need to add within the asp:datagrid tags to bind columns manually?

5 Answers   Siebel Systems,


Can any body provide me the sample web application in asp.net

0 Answers  


Every Validation controls have same option ?

2 Answers   iGate,


Explain autherization levels in .net ?

2 Answers  


What is the difference between a candidate key and primary key?

0 Answers  






How do you define authentication in Web.Config?

2 Answers   Accenture, BirlaSoft, IBM,


What are cookies in your browser?

0 Answers  


What are the namespace classes used in asp.net mvc? : asp.net mvc

0 Answers  


How can I open ashx file in mobile?

0 Answers  


What is MSIL?

4 Answers  


can we edit records from repeater control

2 Answers  


If you want a certain ASP.NET function executed on MouseOver for a certain button. Where do you add an event handler?

1 Answers  


Categories