从HTML页面和JavaScript调用一个java web服务 [英] calling a java webservice from html page and javascript
问题描述
我试图从javascript调用java实现的Web服务(使用NetBeans IDE)。我已经阅读了很多关于jQuery和AJAX的书,但是我似乎无法理解它。
I'm trying to call a java implemented web service (using the NetBeans IDE) from javascript. I have read a lot about jQuery and AJAX but i cant seem to get a hand on it.
假设我的Web服务WSDL位于: http:// localhost:8080 / MICE_Server / MapEditorService?WSDL
suppose my web service WSDL is found at: http://localhost:8080/MICE_Server/MapEditorService?WSDL
web方法名称:sayHello(String name),它返回一个字符串。
web method name : sayHello(String name) which returns a string.
我将如何能够在javascript中这样做?
how would i be able to to this in javascript?
在此先感谢您的帮助!!
thanks in advance for ur help!!
推荐答案
如果您使用的是JQuery,您可能会感兴趣的SOAP客户端插件。
If you are using JQuery, there is a SOAP client plugin that you might be interested in.
Also, you may want to see this related question. This answer may be especially helpful for you.
这篇关于从HTML页面和JavaScript调用一个java web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!