Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have added web reference to the solution.

now i need to access the web methods present under added web reference..

I aspx.cs how to access the web methods ..

Please any one explain me how to access web methods briefly...
Posted

1 solution

When you add a web reference it create a proxy class in your project that has the same or similar methods/arguments as your web service. That proxy class communicates with your web service via SOAP but hides all of the communications protocol stuff so you don't have to worry about it.

say your web method is contained in namspace1.Class1 then you can access it by creating an object of the class "Class1" then call the method in the class using the instance of the class.


Have a nice day:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900