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

List all templates of the repeater control.

0 Answers  


Why do we use sessions?

0 Answers  


Is asp.net a language?

0 Answers  


What is full form of asp.net?

0 Answers  


Define cookie.

0 Answers  






How would ASP and ASP.NET applications run at the same time on the same server?

0 Answers   Satyam,


RequiredFieldValidator--write code in javascript

3 Answers   Wipro,


How do you manage session in ASP and ASP.NET ?

2 Answers   Cap Gemini, Microsoft,


what are types of viewstate

1 Answers  


What is web.config and machine.config ?

1 Answers   Patni,


Which template must you provide, in order to display data in a Repeater control?

3 Answers  


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

0 Answers  


Categories