Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

How do you use a custom validator? When might you want to use one?

3 Answers   Infosys,

What are the intrinsic objects present in ASP.NET

1 Answers   IBM,

Difference between overriding and overloading?

0 Answers  

What does AspCompat="true" mean and when should I use it?

1 Answers   Infogain,

What is the namespace to create thread in .net?

0 Answers  

What does the hotspot class in .net do?

0 Answers  

In the Repeater control which way you can edit?

0 Answers   Siebel,

What are the two properties that are common on every validation control?

0 Answers   Siebel,

If cookies is disabled in client browser will session work ?

7 Answers   Satyam,

What are session state modes in

0 Answers  

What is a postback ispostback and autopostback in asp net?

0 Answers  

How to implement caching?

2 Answers   Infosys, Microsoft,