Buy Questpond's video subscriptions on
huge discount
.
Online: 3016
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
Web Services, Remoting
>
Loading ...
What are the different ways to consume web service in ASP.net and which one is best and why
Posted by
Sonalmisra
under
Web Services, Remoting
on 1/9/2015 |
Points: 10
| Views : 4325 | Status :
[Member]
| Replies : 4
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
I have a Web service and need to consume it . One way I know is by adding web reference . What are other ways to consume it and what are different advantages and disadvantages of it.
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
vishalneeraj-24503
on: 1/9/2015
[Member]
[MVP]
Platinum
|
Points: 25
0
Hi,
You can used Ajax webservice to consume.
Go to the below link:-
http://www.webreference.com/programming/asp/Ajax_WebService/index.html
Sonalmisra
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
vishalneeraj-24503
on: 1/9/2015
[Member]
[MVP]
Platinum
|
Points: 25
0
Please also visit:-
http://www.asp.net/ajax/documentation/live/ViewSample.aspx?sref=Sys.Net.CallWebServiceMethods%23CallWebServiceMethods.aspx
Sonalmisra
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Sonalmisra
on: 1/9/2015
[Member]
Starter
|
Points: 25
0
Hi Vishal ,
Thanks for your response.
Actually for consuming webservice through AJAX , webservice should be marked as [ScriptService] attribute.
I already got webservice that can't be changed and I have to consume it . So for that I need different approaches to consume . And one more thing that web service needs authentication i.e. user name and password.
Please help me on this.
Sonalmisra
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Vuyiswamb
on: 1/12/2015
[Member]
[MVP]
[Administrator]
NotApplicable
|
Points: 25
0
Use the add web-reference its the managed way of consuming a webservice and it is easy to debug when things goes wrong
Thank you for posting at Dotnetfunda
[Administrator]
Sonalmisra
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...