Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to call webservice through JQuery
SIVA
Jun 7 2012 8:20 AM
3k
Reply
Hi all,
<script type = "text/javascript">
function DisplayMessageCall() {
var pageUrl = '<%=ResolveUrl("http://192.168.141.43//MCHWebservice//CallService.asmx")%>'
$.ajax({
type: "Get",
url: pageUrl + "/TestHTML",
data: '{}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccessCall,
error: OnErrorCall
});
}
function OnSuccessCall() {
alert("success");
}
function OnErrorCall(response) {
alert("Failure");
}
Here,
I am trying to call TestHTML method, which returns the values in the format of XML.
and i am trying to run the above code but everytime i am getting failure message.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Validation related to the dropdownlist in jquery
need Some Help in implementing Jquery images slideshow in My Application