Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Voicetools » Calling web services made in eclipse through javascript
icon6.gif  Calling web services made in eclipse through javascript [message #648128] Tue, 11 January 2011 11:15 Go to next message
Gaurav Pasarkar is currently offline Gaurav PasarkarFriend
Messages: 3
Registered: January 2011
Junior Member
I need to call webservices made in eclipse via javascript in a web application. Could anyone provide any sample code for doing so.
Re: Calling web services made in eclipse through javascript [message #648195 is a reply to message #648128] Tue, 11 January 2011 17:56 Go to previous messageGo to next message
Randy Childers is currently offline Randy ChildersFriend
Messages: 121
Registered: July 2009
Senior Member
Hi Gaurav--

There are lots of different kinds of webservices out there, it's a
pretty broad category. Can you give me a bit of technical detail about
the one you're wanting to connect to?

The easiest way to do this might be to get the webservice connection
working in Java, and then port the code to a script block, which is
pretty easy to do. You can use any Java library in a script block,
although the syntax for declarations is a little different.

Randy


In <ighdpo$nnd$1@news.eclipse.org> Gaurav Pasarkar wrote:
> I need to call webservices made in eclipse via javascript in a web
> application. Could anyone provide any sample code for doing so.
>
Re: Calling web services made in eclipse through javascript [message #649715 is a reply to message #648195] Thu, 20 January 2011 12:18 Go to previous messageGo to next message
Gaurav Pasarkar is currently offline Gaurav PasarkarFriend
Messages: 3
Registered: January 2011
Junior Member
No Message Body
Re: Calling web services made in eclipse through javascript [message #649717 is a reply to message #648195] Thu, 20 January 2011 12:23 Go to previous messageGo to next message
Gaurav Pasarkar is currently offline Gaurav PasarkarFriend
Messages: 3
Registered: January 2011
Junior Member
hi Randy.
This web service made in eclipse is a SOAP based web service, i guess.
i tried to send the SOAP request through javascript using the XMLHttpRequest object.
But its not working.
Could you suggest to do this.
Remember its a SOAP based web service and not the one made in .NET.
For a web service made in .net , its very simple bcoz we just have to point to the wsdl file.
Re: Calling web services made in eclipse through javascript [message #650600 is a reply to message #649717] Tue, 25 January 2011 16:46 Go to previous message
Randy Childers is currently offline Randy ChildersFriend
Messages: 121
Registered: July 2009
Senior Member
Gaurav, are you having problems with the SOAP payload construction, or
is more of a coding problem? Developing in javascript (especially in
the context of a callflow) is a slow, tedious process -- I'd suggest
prototyping this in Java first, and then porting the Java to javascript,
which is a pretty straightforward thing to do.

I know this is a tricky process; I've had trouble doing it myself in the
past. I would suggest trying some 3rd party tools to help you quickly
work out the proper SOAP syntax, and then replicate this in the code.

Does this help?

Randy

In <ih9957$te9$1@news.eclipse.org> Gaurav Pasarkar wrote:
> hi Randy.
> This web service made in eclipse is a SOAP based web service, i guess.
> i tried to send the SOAP request through javascript using the
> XMLHttpRequest object. But its not working. Could you suggest to do
> this. Remember its a SOAP based web service and not the one made in .
> NET. For a web service made in .net , its very simple bcoz we just
> have to point to the wsdl file.
>
>
Previous Topic:N-Best question
Next Topic:How to find log file - debugging in Eclipse VST 3.0 ?
Goto Forum:
  


Current Time: Sat Apr 20 00:08:19 GMT 2024

Powered by FUDForum. Page generated in 0.04177 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top