This project has moved and is read-only. For the latest updates, please go here.

accessing sharepoint on another server with custom port

Jan 27, 2014 at 9:54 AM

I bumped onto this usefull looking "tool".

I am in this situation.

We have a sharepoint server operating on port 55555

There we have a plain link pointing to another server holding our custom intranet applications running on the apache/php/mysql combo.

What I need is a way to get the username from the sharepoint server to bypass an extra login.

so it's

a:55555 > b > fetch from a:55555 user data

I tried with

webURL: "http://a:55555"

as extra parameter but that doesn't seem to return anything at all when putting
at the end of the routine.

Anyone having an idea how to get this working?
Jan 27, 2014 at 10:50 AM
Firebug shows me this

ReferenceError: L_Menu_BaseUrl is not defined

userLoginName: $().SPServices.SPGetCurrentUser(),

TypeError: $(...).SPServices is undefined

userLoginName: $().SPServices.SPGetCurrentUser(),

I read that it bugs with JQuery 1.9.x so I change it to 1.10.x but it still give this error.

and I added this to the head block

<script src="/common/js/jquery.SPServices-2013.02a.min.js"></script>
Jan 27, 2014 at 2:35 PM
What are you calling in SPServices? Are you referencing jQuery first?

There's a bug in 2013.02a with SharePoint 2010. I goofed in using L_Menu_BaseUrl the way I did.

If you change line 3678 from this:
            this.thisSite = L_Menu_BaseUrl;

to this:
            this.thisSite = (typeof L_Menu_BaseUrl !== "undefined") ? L_Menu_BaseUrl : "";
you should be all set.

Mar 11, 2014 at 10:52 AM
ok, strategy changed again here and I'm forced again to go for a single sign on method so I'm here again :)

I downloaded the new 2014 version which seems to have the above method included already but it's still not working.

Now I get errors (in firebug) that it can't find pages on my php server while it's supposed to go to the other (sharepoint) server which I defined in the javascript/jquery lines.
<script type="text/javascript">
$(document).ready(function() {

    operation: "GetUserInfo",
    webURL: "http://sharepoint:55555",
    async: false,
    userLoginName: $().SPServices.SPGetCurrentUser(),
    completefunc: function (xData, Status) {alert("done");}
404 Not Found       11ms     jquery....min.js (regel 6) "NetworkError: 404 Not Found - http://server-sql/_vti_bin/Webs.asmx" Webs.asmx
GET http://server-sql/_layouts/userdisp.aspx?Force=True&1394531099928
404 Not Found       10ms     jquery....min.js (regel 6) "NetworkError: 404 Not Found - http://server-sql/_layouts/userdisp.aspx?Force=True&1394531099928"
POST http://server-sql/_vti_bin/Webs.asmx
404 Not Found       11ms     jquery....min.js (regel 6) "NetworkError: 404 Not Found - http://server-sql/_vti_bin/Webs.asmx"