• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Consume web service in javascript

 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can anybody let me know how to consume web service in javascript...

The output of the webservice is another XML file. I am new to XPath. Can you also let me know how to use XPath to get the data out from the web service output, and show it in a simple table with 3 columns...

Here is the output from the web service:
Code:



Thanks
Srinivas
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reason you want to do this with JavaScript is?

Eric
 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:Reason you want to do this with JavaScript is?

Eric


Thanks for your reply!

The reason is I am working on Yahoo widget, where the only option is to use Javascript.

Unless, if you have better thoughts of using a different language underneath the widget...

Srinivas.
 
salvin francis
Bartender
Posts: 1268
10
Eclipse IDE Google Web Toolkit Java
 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hello,

I am using this blog to script the webservice call...,

I get a "window is not defined" error, in the "prototype.js" library at line 399.

Here is the code am using



Is there a problem with my code above.

thanks
Srinivas
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic