Buy Questpond's video subscriptions on
huge discount
.
Online: 6466
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
>
JavaScript
>
Loading ...
Call Web service in java script
Posted by
Kkdubey
under
JavaScript
on 5/11/2012 |
Points: 10
| Views : 3808 | Status :
[Member]
| Replies : 6
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
how can i call web service in java script....and also how can i return dataset from web service or wcf service to javascript ?
someone give me any idea about that.....
Thanks
Krishna
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Hariinakoti
on: 5/12/2012
[Member]
Starter
|
Points: 25
0
Hi,
refer this link.
http://www.codeproject.com/Articles/14610/Calling-Web-Services-from-HTML-Pages-using-JavaScr
Thanks & Regards
Hari
Kkdubey
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Kkdubey
on: 5/14/2012
[Member]
Starter
|
Points: 25
0
Thanks Hariinakoti,
I seen this link and i tried the same procedure but, i am not able find method (Service.useService).
so,you have any idea how can i find and use this method(useService).
and i write forcefully this method in java script then i could not call web service.
Thanks
Krishna
Kkdubey
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Hariinakoti
on: 5/14/2012
[Member]
Starter
|
Points: 25
0
Sorry Krishna i dnt knw.Thats why i posted this link....
Wait & see our DSP team will help u...
Thanks & Regards
Hari
Kkdubey
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Kkdubey
on: 5/14/2012
[Member]
Starter
|
Points: 25
0
Thanks.....
Kkdubey
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Ajay.Kalol
on: 6/5/2012
[Member]
Starter
|
Points: 25
0
try this
http://ajaypatelfromsanthal.blogspot.in/2012/05/call-web-services-using-soap-client-in.html
Ajay
ajaypatelfromsanthal.blogspot.in
Kkdubey
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Svandanapu
on: 6/5/2012
[Member]
Starter
|
Points: 25
0
You can call thr Ajax request from Javascript as below
var webMethod = '...<Path> / <ServiceName>.asmx/<WebMethod>';
var parameters = "{'userID' : '" + UserID + "','prsnID' : '" + PersonID "'}";
$.ajax({
type: "POST",
url: webMethod,
data: parameters,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
// Do whatever you want
error: function (msg) {
// Handle your error
}
});
Note :- You have to ensure, all the variable names and types must be same as your web method
Kkdubey
, 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 ...