最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

calling a java webservice from html page and javascript - Stack Overflow

programmeradmin3浏览0评论

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.

suppose my web service WSDL is found at: http://localhost:8080/MICE_Server/MapEditorService?WSDL

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

how would i be able to to this in javascript?

thanks in advance for ur help!!

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.

suppose my web service WSDL is found at: http://localhost:8080/MICE_Server/MapEditorService?WSDL

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

how would i be able to to this in javascript?

thanks in advance for ur help!!

Share Improve this question asked Apr 20, 2010 at 14:10 JukkiJukki 411 gold badge1 silver badge3 bronze badges 1
  • 1 Show us some code. If we can see your attempt, we can tell you where you are going wrong. That is going to be a lot more helpful than a spoonfed example that you don't understand any more then the other examples you've seen. – Quentin Commented Apr 20, 2010 at 14:12
Add a ment  | 

2 Answers 2

Reset to default 2

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.

Unless you have to use jQuery, I think it might be easier to just use DWR here. You can call the webservice method from the DWR backend method which can be invoked from a java script. It's pretty easy to set up. They have a good collection of tutorials on their website as well.

发布评论

评论列表(0)

  1. 暂无评论