Using SP Services in an HTML file in a document library Error 500 (/_vti_bin/Webs.asmx)

Oct 23, 2015 at 2:40 PM

a bit of an unusual question. I am in a pretty restrictive enterprise environment that uses SP.

I have created some SPA's in HTML, CSS and JavaScript that are entirely client side, and hosted them in a SP document library.

I want to use SP services for a pseudo back end by retrieving and setting list items.

I have tested using SP services on a true SP page with success. When I use the same code, in my HTML files hosted in my document library, I get a 500 error for (/_vti_bin/Webs.asmx).

Is what I am trying to do possible?
Oct 28, 2015 at 4:15 PM
You can do what you want, as long as you add the HTML file into an aspx page. You can do this using a Content Editor Web Part, adding the path to the HTML file into the Content Link.