views:

87

answers:

3

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: 

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.

Spudley
can you please ell me from where to download the example. i am unable to find in the url mentioned above
Neha
Annoyingly, you're right -- the links on that page seem to all be broken. Grr. Not even a functional download link. I should have checked that before posting. This link might help you - it looks like it contains the original source code (plus a bit extra on top): http://plugins.jquery.com/files/jquery.soapRequest.js.txt
Spudley
+1  A: 

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.

Umakanta.Swain
+1 for NOT formatting your code - at least make the OP work a little for 'plz send teh codez' (BTW, I have no idea if this even works, but the upvote still seems warranted)
KevinDTimm
I guess this is a request to REST web service. fo rme i have a java SOAP webservice.
Neha
+1  A: 

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

Umakanta.Swain