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

Why is string called immutable data type?

0 Answers  


Why asp.net is used?

0 Answers  


What is WCF? Pls Explain clearly with exmple.

3 Answers   HCL, iGate,


Should user input data validation occur server-side or client-side? Why?

3 Answers   NIC, Siebel Systems,


which is faster ArraytList Or Collection ? how? hows the Hashing works internally ?

2 Answers   Emphasis,






What is the sequence of operation takes place when a page is loaded ?

1 Answers  


Can two different programming languages be mixed in a single ASMX file?

1 Answers   IBM, Patni, Wipro,


What Are Different Types of Debbugers

2 Answers   Accenture, TCS, Wipro,


Which control would you use if you needed to make sure the values in two different controls matched?

4 Answers   Siebel Systems,


What is AutoPostback?

0 Answers  


what is client-server architecture in .net? and what is 3-tier architecture?

1 Answers  


What is session authentication?

0 Answers  


Categories