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 is use of web.config?

3 Answers  


What is the use of web.config file?

0 Answers  


Explain the role of global.asax?

0 Answers  


Explain security types in asp.net?

0 Answers  


With example & diagram explain AutoPostBack.

2 Answers  


About Windows/Forms Authentication

1 Answers  


What is different between webconfig.xml & Machineconfig.xml ?

1 Answers  


How do u declare static variable and how it is declared and what is its lifetime?

0 Answers  


Types of optimization and name a few and how do u do?

1 Answers   Accenture,


what is silver light when will we use silver light,

0 Answers  


How do I use response redirect?

0 Answers  


What is caching and types of caching ?

2 Answers   Infosys,


Categories