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 does asp page work?

0 Answers  


how can u create the blog in asp.net with C#?what is the data type u will use to store in sql server?

0 Answers   IBM,


Define Query Interface,Adref,Release?

1 Answers   Microsoft,


explain ado.net

6 Answers  


what is the deference between dataset and data adapter?

4 Answers   TCS,


What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ?

3 Answers   eXensys,


You have been given the task of designing a web services to expose the data that is stored in a database on the server. In order to successfully build the web services, you need to import some namespaces. What is the minimum namespace you need to import? a) System.Web b) System.WebServices c) System.Web.Services d) System.Web.ServiceModel

2 Answers   Syntax Softtech,


What is viewstategenerator?

0 Answers  


Explain Optimization technique description?

0 Answers   Digital GlobalSoft,


What kind of programming language is ASP.NET?

0 Answers   3i Infotech,


What is the differances between a abstract calss and interface

2 Answers   Patni,


How Response.flush works in server.Execute

1 Answers  


Categories