Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2225
  • Last Modified:

Prototype.js WebServices and XML

I am a .NET developer writing a middlle tier that returns XML to the UI via webservice. The UI developer is using prototype.js to call the web service and get the XML containing the page content. Does anyone know of a tutorial on the internet for how to use these technologies together.
0
jtwoods4
Asked:
jtwoods4
1 Solution
 
ToFroCommented:
0
 
NicoCommented:
I found this article from some guy at IBM, and I'm pretty sure it's exactly what you need :)

http://www.ibm.com/developerworks/web/library/ws-wsajax/

0
 
NicoCommented:
(assuming you're using SOAP webservices, ofcourse)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jtwoods4Author Commented:
I am looking for a specific exmaple using prototpye.js and a .NET 2.0 web service call. These are good links, already found them. However, they do not demonstrate how to call a specific method in a .net webservice.
0
 
NicoCommented:
Yes it does. At least if you want to use this IBM guys JS code. Check the "Listing 6. Using the WS.Call object to invoke a Web service" part.

If you want to create some JavaScript code to call webservices all by yourself I'd recommend that you study the SOAP protocol first.. then you will see how you have to create the XML for the WebService call (but you don't really want to do that)

It could be that I'm understanding you incorrectly, so in that case please elaborate :)
0
 
NicoCommented:
Also, take a look at the Prado framework: http://www.pradosoft.com/

By the way, there is not really a 'simple' way to call a SOAP WebService from JavaScript, if your looking for that.
0
 
NicoCommented:
Or maybe not look at Prado.. might only be confusing ;) It's PHP framework, but if I recall they have some client side javascript to access their SOAP services. Not Prototype library, anyway, and probably too complex.
0
 
jtwoods4Author Commented:
So the IBM example is using prototype.js???? Looks like he is using his own custom ws.js.....
0
 
jtwoods4Author Commented:
Acutally, it looks like he is using prototype.js and the ws.js...... is this a custom file (ws.js)?
0
 
NicoCommented:
yeah, it seems like that. the ws.js has all the methods to parse the SOAP messages and stuff I suppose. You can download it from the same page..
0
 
Richard QuadlingSenior Software DeverloperCommented:
jtwoods4,

I'd be very interested in your experience in using Prototype.js with WS.js. Or whatever you did in the end to get your client's talking to SOAP services.

See : http://www.experts-exchange.com/Programming/Languages/Scripting/AJAX/Q_23965947.html

Regards,

Richard Quadling.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now