views:

269

answers:

3

Hey guys, 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!!

A: 

Try taking a look at this article. It provides a nice walk through and explanation.

Jon
Will that send the SOAPAction header that needs to be sent with SOAP requests? Or the other SOAP envelope structure that a SOAP web service expects?
pkaeding
Wow, My mind totally blanked on this one, I've changed my answer to link to an article I found about connecting to soap web services with JQuery.
Jon
+1  A: 

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.

pkaeding
A: 

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.

CoolBeans