Consume SOAP webservice using jQuery
15,980
Solution 1
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.
Solution 2
there is a relatively new plugin available:
http://plugins.jquery.com/soap/
I forked the project, and have been working on some modifications (the plugin did not handle the service I was working with). I hope to get my updates merged at some point, but would be happy to have any feedback.
https://github.com/zachofalltrades/jquery.soap
Author by
Newbee
Updated on June 18, 2022Comments
-
Newbee almost 2 years
I have a SOAP web service in Java which needs to be called from an HTML page using jQuery. Can somebody tell me how to do that? I am new to it.
-
KevinDTimm over 13 years+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)
-
Newbee over 13 yearscan you please ell me from where to download the example. i am unable to find in the url mentioned above
-
Newbee over 13 yearsI guess this is a request to REST web service. fo rme i have a java SOAP webservice.
-
Spudley over 13 yearsAnnoyingly, 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): plugins.jquery.com/files/jquery.soapRequest.js.txt
-
Richard almost 11 yearsUhh... no. This isn't a SOAP request, it's a JSON request. If you wire this code to a SOAP service, it will fail. -1
-
Richard almost 11 yearsThis is a link that goes to code that services JSON requests. It's not useful and doesn't answer the question.
-
Richard almost 11 yearsjquery.com has changed their URLs. Now the project link is: http://plugins.jquery.com/soap/. +1 for the only solution here that actually works.