I didn’t know about this until recently, though I kept hearing now and then something like existed. Apparently, Mozilla has built in SOAP support via a JavaScript interface. Apple put up a nice article about how to use the API.