Calling a Java service from an html page and javascript

I am trying to call a Java implemented web service (using NetBeans IDE) from javascript. I read a lot about jQuery and AJAX, but I don't seem to understand it.

Suppose my WSDL web service is located at: http: // localhost: 8080 / MICE_Server / MapEditorService? WSDL

web method name: sayHello (string name), which returns a string.

how can i do this in javascript?

Thanks in advance for your help!

+4
source share
3 answers

If you use jQuery, there is a SOAP SOAP client that might interest you.

You can also see this question . This answer may be especially helpful to you.

+2
source

Try a look at this article . It provides a pleasant walk and explanation.

0
source

If you don't need to use jQuery, I think it would be easier to just use DWR here. You can call the webservice method from the base DWR method, which can be called from a java script. It is pretty easy to set up. They also have a good collection of tutorials on their website.

0
source

Source: https://habr.com/ru/post/1307456/


All Articles