从HTML页面和JavaScript调用一个java web服务 [英] calling a java webservice from html page and javascript

查看:160
本文介绍了从HTML页面和JavaScript调用一个java web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆