I've been searching for some good example on how to create simple WS client using dojo toolkit library. Unfortunatelly I cannot find anything that would be working properly for my WS. I tried to use xhr.get but then I found information that I won't be able to do that when my WS is in another domain. WS I try to use is based on SOAP.
Asked
Active
Viewed 816 times
0
-
Have a look at this answer : http://stackoverflow.com/questions/124269/simplest-soap-example-using-javascript – Philippe Feb 20 '12 at 11:53
-
Is your webservice exposed through SMD (http://www.sitepen.com/blog/2008/03/19/pluggable-web-services-with-smd/)? – Philippe Feb 20 '12 at 12:02
-
@Philippe web service we are talking about its not exposed through SMD. I've seen many examples but all of them use ws from the same domain – arek Feb 20 '12 at 12:11
-
The easiest then would be that you have a look at the SMD examples and create your own SMD wrapper for the webservice you are trying to access... See http://livedocs.dojotoolkit.org/dojox/rpc/smd – Philippe Feb 20 '12 at 12:26
-
Becareful for SMD does not really work with new stores API in dojo 1.7.x Anyway, there are many ways to feed on WS from different stores (JsonRest, XML, etc...) so it's mostly depending on what you are looking for exactly... and cross-domain shouldn't be a problem, as long as you're using CORS (lookup for cross origin in google :p) – PEM Feb 21 '12 at 13:42