how to use web services with code?(with example code)

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the adavantage of using ASP.NET routing?

640


What is semantic gap?

612


What is custom events? How to create it?

612


How will create assesblies at run time?

543


Explain the use of duration attribute of @outputcache page directive.

609






How many types of sessions in asp.net?

571


Explain the difference between sql invalidation and sql notification.

550


Differentiate the session object and application object?

526


What is data caching?

547


Where the assembly is stored in asp.net?

543


How do I create a web form?

524


Difference between using directive vs using statement?

503


how to transfer the file from client to server using asp.net

578


What is asp.net? How is it different from asp?

536


What are the advantages and disadvantages of Using Cookies?

511