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 are the parts of an http response?

689


What are the merits and demerits of viewstate?

773


What is asp net objects?

704


Differentiate between authentication and authorization.

749


Who can consume WebAPI?

757


What is the difference between login controls and forms authentication?

730


What is the differences between a primary key and a unique key in sql server?

752


Do I need to have the latest version of windows media player installed?

704


Define machine.config in .net?

734


What are the two Layouts supported by a Web form in ASP.NET?

767


How to you can limit Access to Web API to Specific HTTP Verb?

883


Why mvc is better than asp.net? : Asp.Net MVC

655


How to Insert/Add in ASPXgridview

749


Give an example of cookie abuse.

797


What is a 307 redirect?

664