Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8997745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:55:50+00:00 2026-06-15T23:55:50+00:00

I am writing some JavaScript to communicate with a SharePoint Web Service that resides

  • 0

I am writing some JavaScript to communicate with a SharePoint Web Service that resides behind a firewall and requires a certificate.

I have the right certs installed in my browser. When I browse over to the WSDL I load the page just fine.

But when I execute a simple SPServices command (GetListCollection) from a web page using javascript/jQuery, I get an unauthorized error.

I removed the certs from my browser and tried to load the WSDL and got the exact same error. Reinstalling the certs fixes the WSDL view, but my JavaScript still errors out.

I am using this code:

$().SPService({
  webURL:  [the url],
  operation: "GetListCollection",
  async: false,
  completefunc: function( xData, Status ) {
    console.log( 'Status: ' + Status );
    if ( !!xData ) {
      $( xData.responseXML ).find("Lists > List").each(function() {
        var $node = $(this);
        console.log( $node.attr( "Title" ) );
      });
    }
    else {
       alert('Null result.');
    }
  }
});

Sorry if there are typos in the code; this is not cut and paste because my dev box is not connected to the internet.

I think I need to embed a certificate that is installed in the browser (of whoever is running the code on my page) into the web service request, but I have no clue how or where to look for the answer. Any tips would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:55:51+00:00Added an answer on June 15, 2026 at 11:55 pm

    Turns out you are not allowed to talk to any other servers via https using javascript other than the server you loaded the original page from. It is part of the ajax/javascript security spec. So this solution will not work at all. I’ll have to look into a server-side proxied request solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very new to Web development, and have been writing some javascript that
I've been writing some jQuery functions that have JavaScript variables and looping, etc inside
I'm writing some JavaScript to implement placeholder text in browsers that don't have it.
I'm currently writing some code that wrappers user-written JavaScript functions, and have come across
I'm writing a web page in ASP.NET. I have some JavaScript code, and I
When I'm writing some JavaScript I have a set of interface buttons that have
I have problem in some JavaScript that I am writing where the Switch statement
I'm writing some Javascript code that generates an XML document in the client (via
I'm writing a simple Javascript library that makes use of some WebGL code. I'd
I am writing some JavaScript that what I essentially want to do is confirm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.