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 Response.flush works in server.Execute

1 Answers  


What's the use of formatters in .net?

0 Answers  


What is content place holder?

0 Answers  


In asp.net 3.5 we can go one page to onther page without using statemanagment concept?

1 Answers   ANR, Google, TCS,


What asp.net control can embed xaml into asp.net pages?

0 Answers  


In a webpage if i want to give access to only half page ,then what should i do?

3 Answers  


Explain Assemblies?,Difference between Panel and GroupBox?,Differences between ASP and ASP.NET?

1 Answers  


What is aspect-oriented programming?

0 Answers  


Explain managed code an un-managed code.

0 Answers  


how many script manager controls are used in Ajax web page?

7 Answers   CSC, Health Prime Services, TCS,


Explain page output caching?

0 Answers  


Various types of Page Load functions

4 Answers   Net Solution,


Categories