I have a SOAP web service in java which needs to ba called from an html page using jquery. Can somebody tell me how to do that. I am new to it.
A quick google search reveals that there is a jquery plugin for this:
http://plugins.jquery.com/project/jqSOAPClient
Download, examples and further information available from this link.
ya you can do it by this way as bellow.
$(document).ready(function() { $('input:button').addClass("btnClass"); fillData(); $('#btnGet').click(function() { fillData(); }); function fillData() { $.ajax({ type: "Post", url: "../myService.asmx/getStudent", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { //var nMsg = (typeof msg.d) == 'string' ? eval('(' + msg.d + ')') : msg.d; var t = " " + "Your Search Result......
" + " Student IDStudent NameStudent CourseStudent USN" + "
"; $.each(msg.d, function(index, item) { t = t + " " + item.studId + "" + item.studName + "" + item.studCourse + "" + item.studUsn + " "; t = t + "
"; }); t = t + " "; $("#stdData").html(t); }, error: function(msg) { } }); }
Here I am showing the data into a div ............
so Reply me if it solved and if any query ping me.
Hey here is the link You can go through this for more simple usage.
http://www.andrewrowland.com/article/display/consume-dot-net-web-service-with-jquery
Make this answer if it solves ur problem.
Thank You