Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
xociety6688yI would use Rest and JSON. But the api I need to access only uses SOAP. I can't use python or php because we can't install on the servers. :(
-
Coderman1248y@xociety SOAP is really just a wrapper around xml (pia for js I know) but simply iterating over the data and building the packet as a string should be simple enough.
-
xociety6688ythat's what's this guy on YouTube is pretty much doing. but I may look into JavaScript SOAP Client?
-
SOAP doesn't work over JavaScript (AFAIK). The whole point of SOAP is that it serialises strongly typed objects to XML. Can't really do that with JavaScript. You'll need to use a language like Java or C# for that. C#'s WCF framework is great for using SOAP services. Weird that it would have SOAP but not REST.
-
xociety6688yThe Bronto API does have rest but only for thier checkout and cart system. Emails and contacts are in SOAP. I guess they didn't want to go back and change things over.
-
I stand corrected. SOAP over JavaScript is a thing. Looking at the code samples, I'd say, 'fuck that'. Take a look at some C# samples. It's WAY easier.
-
@xociety Java does SOAP too! I don't know as much about it as C# but it would definitely be easier than JS.
-
chrizzle7278yGoogling "javascript soap library" returns a SO article with a soap plugin link for me.
it's sooo annoying. There are no sites that cover SOAP with JavaScript. I am only a junior dev and I have no way how to tackle this project. Why SOAP??
undefined