Consumes SOAP-webservice using jquery

I have a SOAP web service in java that needs to be called from an html page using jquery. Can someone tell me how to do this. I am new to this.

+6
jquery html soap web-services
source share
4 answers

A quick google search shows that there is a jquery plugin for this:

http://plugins.jquery.com/project/jqSOAPClient

Download, examples and additional information at this link.

+4
source share

there is a relatively new plugin:

http://plugins.jquery.com/soap/

I forked the project and worked on some changes (the plugin did not process the service I was working with). I hope that my updates will be merged at some point, but we will be happy to receive feedback.

https://github.com/zachofalltrades/jquery.soap

+3
source share

ya you can do it like below.

$(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 = "<table width='80%' id='resTab'> <tr>" + "<td colspan='5' style='text-align:center'><font size='3'><strong>Your Search Result......</strong></font></td></tr> <tr><td style='text-align:left' colspan='5'><hr></td></tr> " + " <tr><td style='text-align:center'>Student ID</td><td style='text-align:center'>Student Name</td><td style='text-align:center'>Student Course</td><td style='text-align:center'>Student USN</td></tr>" + " <tr><td style='text-align:left' colspan='5'><hr><br></td></tr> "; $.each(msg.d, function(index, item) { t = t + " <tr><td style='text-align:center'>" + item.studId + "</td><td style='text-align:center'>" + item.studName + "</td><td style='text-align:center'>" + item.studCourse + "</td><td style='text-align:center'>" + item.studUsn + "</td><td><input type='button' ID='btn-" + item.studId + "' value='Delete' class='new-button' />&nbsp;&nbsp;&nbsp;<input type='button' ID='upd-" + item.studId + "' value='Update' class='upd-button' /></td></tr>"; t = t + " <tr><td style='text-align:left' colspan='5'><hr></td></tr> "; }); t = t + " </table> "; $("#stdData").html(t); }, error: function(msg) { } }); } 

Here I show the data in a div ............

so answer me if he decides and if any request ping me.

0
source share

Hi, here is the link. You can go through this for easier use.

http://www.andrewrowland.com/article/display/consume-dot-net-web-service-with-jquery

Do this answer if it solves ur problem.

thanks

0
source share

All Articles