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 Forms Authentication in ASP.NET?

657


Can you explain one critical mapping? Performance issue which one is better?

564


Which is better php or asp.net?

598


Name the two properties are on every validation control?

629


What is the difference between application state and session state in asp net?

619






Why do we need Sessions?

666


What are the Types of state management techniques

645


How information about the user's locale can be accessed?

672


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

5168


What is true about application service provider?

575


What are the disadvantages of view state?

708


What is server redirect?

642


Define authentication and authorization.

717


What is the difference between system.stringbuilder and system.string

352


When does a session actually start?

657