Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Can anyone explain how to use webservice in existing application?
Posted
Comments
kiran dangar 3-Oct-11 9:16am    
It depends on the architecture of your application.. do you have application code access?
jim lahey 3-Oct-11 9:20am    
You really need to post a bit more information.

Hello friend its depends on your flow of application, means which type of architecture you follow.

but simply you can try this to access your webservice method using this normal steps..
1 Way...

1) add web reference of your web service to your application
2) Create a Object of your webservice reference in your code behind page.
3) now simply call your webmethods using that objectname.(dot) your method name
or if your method is getting parameters then pass it to it when you call it.

2 Way...

You Can also call your web method using jQuery and Ajax call
How to call a Web Service from client-side JavaScript using ASP.NET AJAX[^]
Calling Web service[^]
 
Share this answer
 
Comments
Simon Bang Terkildsen 3-Oct-11 9:58am    
It really depends on the architecture, how and for what the OP want to use the web service for, you covered the how the OP can do it from server and client side.
+5!

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