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 to elimainte the similar data from the different tables

0 Answers  


Describe the master page.

0 Answers  


What is a master page and what does it do?

0 Answers  


What is the use of mcommand ? mcommand.fill(ds,"orderdetails");

1 Answers   Netsweeper,


Is There any Third party tools are using in .Net Technologies? Can u Explain?

4 Answers   HCL,






Where are session variables stored?

0 Answers  


which is better arraylist or dictionary?

2 Answers  


can i call the java script to code behind file?if yes how?

4 Answers   Wipro,


What is the difference between excute query and excute nonquery.?

4 Answers  


What are demand-paging and pre-paging?

0 Answers   MCN Solutions,


How does ASP.NET framework maps client side events to Server side events.?

0 Answers  


what is <location> tag?

2 Answers  


Categories