Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (sharepoint)
Viewing all articles
Browse latest Browse all 3

Connection to Sharepoint 2010 with SPConnector module

$
0
0

Hi. I am trying to connect to Sharepoint 2010 with the SPConnector module from the marketplace but I can't connect. My setup is as follows:

I'm using the latest version of Studio and SDK (Appcelerator Studio, build: 3.4.2.201502181619, Titanium SDK version 3.5.0.GA); iOS SDK: 8.1

My code (url, username and password are changed):

// Create an object with the SharePoint Portal information
var settings = {
    url: 'https://our.domain.com/global/it/development/Shared%20Documents/',
    userName: settings.appData.username,
    password: settings.appData.password,
    domain : null,
    authMode: '',
    timeout : 1000
};
 
// The spcRef variable is a reference to the Module object.
var spcRef = require("com.winwire.spconnectorpro");
 
// Create an object of the SPConnectorLite module
var spc = new spcRef.spConnector(settings);
 
// Read Sharepoint List info with all documents
try {
    var response = spc.fetchListViews({
        listName : 'Documents', 
        callbackEvent : 'onFetchListViewsSuccess'
    }); 
} catch (e) {
    Ti.API.info("+++ ERROR READING LIST! +++");
}
The log says that it can't authenticate. I am on the network though that grants me access to the Sharepoint page I want to access with Appcelerator. I can access the page in my browser. I have tried to do this with the ios simulator and my device. Both bring the same error message. Here is the log:

[INFO] : Application started [INFO] : [object ComWinwireSpconnectorproModule] loaded [INFO] : Final Settings from SPC Module is..{"url":"https://our.domain.com/global/it/development/Shared%20Documents/","userName":"my.name","password":"mypassword","domain":null,"authMode":"","timeout":1000} [INFO] : AUTHMODE is....lists/getbytitle('Documents')/items?$top=1000 Office 365 https://our.domain.com/global/it/development/Shared%20Documents/ [INFO] : Split URL is....https://our.domain.com [INFO] : Inside OAuth Authenticationhttps://our.domain.com/global/it/development/Shared%20Documents/ https://our.domain.com/_forms/default.aspx?wa=wsignin1.0 lists/getbytitle('Documents')/items?$top=1000 my.name mypassword [INFO] : The final URL is...https://our.domain.com/global/it/development/Shared%20Documents/undefined [INFO] : Inside OnreadyStateChange 3 {"type":"onreadystatechange","readyState":3,"source":{"method":"POST","url":"https://login.microsoftonline.com/extSTS.srf"}} [INFO] : [SPC INFO] : Status is server error [INFO] : Inside OnreadyStateChange 2 {"type":"onreadystatechange","readyState":2,"source":{"method":"POST","url":"https://login.microsoftonline.com/extSTS.srf"}} [INFO] : [SPC INFO] : Status is no error [INFO] : Inside OnreadyStateChange 3 {"type":"onreadystatechange","readyState":3,"source":{"method":"POST","url":"https://login.microsoftonline.com/extSTS.srf"}} [INFO] : [SPC INFO] : Status is no error [INFO] : Inside OnreadyStateChange 4 {"type":"onreadystatechange","readyState":4,"source":{"method":"POST","url":"https://login.microsoftonline.com/extSTS.srf"}} [INFO] : [SPC INFO] : Status is no error [INFO] : Token from STS is....<?xml version="1.0" encoding="utf-8" ?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:psf="http://schemas.microsoft.com/Passport/SoapServices/SOAPFault"><S:Body><S:Fault><S:Code><S:Value>S:Sender</S:Value><S:Subcode><S:Value>wst:FailedAuthentication</S:Value></S:Subcode></S:Code><S:Reason><S:Text xml:lang="en-US">Authentication Failure</S:Text></S:Reason><S:Detail><psf:error><psf:value>0x80048821</psf:value><psf:internalerror><psf:code>0x80041034</psf:code><psf:text>The specified member name is either invalid or empty.&#x000D;&#x000A;</psf:text></psf:internalerror></psf:error></S:Detail></S:Fault></S:Body></S:Envelope> -1 [ERROR] : Script Error { [ERROR] : column = 422; [ERROR] : line = 2; [ERROR] : message = "undefined is not an object (evaluating 'args.binaryToken.length')"; [ERROR] : sourceURL = "file:///Users/berndbasmer/Library/Developer/CoreSimulator/Devices/F8EC09A3-B547-4085-BC85-3FF1FAEF5344/data/Containers/Bundle/Application/5E115526-DD2F-4504-BE81-C16E72030F05/TX_SharepointDocs.app/com.winwire.spconnectorpro"; [ERROR] : stack = "getFedAuthCookies@file:///Users/berndbasmer/Library/Developer/CoreSimulator/Devices/F8EC09A3-B547-4085-BC85-3FF1FAEF5344/data/Containers/Bundle/Application/5E115526-DD2F-4504-BE81-C16E72030F05/TX_SharepointDocs.app/com.winwire.spconnectorpro:2:422\nonload@file:///Users/berndbasmer/Library/Developer/CoreSimulator/Devices/F8EC09A3-B547-4085-BC85-3FF1FAEF5344/data/Containers/Bundle/Application/5E115526-DD2F-4504-BE81-C16E72030F05/TX_SharepointDocs.app/com.winwire.spconnectorpro:6:18"; [ERROR] : 2015-03-06 13:50:07.342 TX_SharepointDocs[44987:267723] Unbalanced calls to begin/end appearance transitions for <TiViewController: 0x7fb5314948f0>.

Any help is much appreciated.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images