2
xociety
8y

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??

Comments
  • 0
    I 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. :(
  • 1
    @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.
  • 0
    that's what's this guy on YouTube is pretty much doing. but I may look into JavaScript SOAP Client?
  • 1
    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.
  • 0
    The 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.
  • 1
    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.
  • 0
    too bad we can't do .net on a Java server. :(
  • 2
    @xociety Java does SOAP too! I don't know as much about it as C# but it would definitely be easier than JS.
  • 0
    I'll think I will have a look into that
  • 2
    Googling "javascript soap library" returns a SO article with a soap plugin link for me.
  • 1
    @chrizzle just be cause it exists, doesn't mean you should.
Add Comment