Hello,
Why do you want to use JavaScript from within Java. You don't have to use JavaScript to call a web service from within Java. To call SOAP web services please refer to this link [
^] or this[
^] or this[
^]. For REST web services you can use
HttpClient.
Regards,