Skip to main content
added 38 characters in body
Source Link

Can we use third party custom Web servicesCisco based Custom web service in SharePoint-hosted app on Office 365?

My requirement is to get an itemitems from Casio Web serverCisco based Custom web service and display items in SharePoint Environment (Office 365) using SharePoint Hosted app.

But I'm receiving thisits getting error: Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'

Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'

Here is my code:Here is code:-

CanHow we giveprovide the Network Credentials details for custom web service on SharePoint-hosted app development  ?

Can we use third party custom Web services in SharePoint-hosted app on Office 365?

My requirement is to get an item from Casio Web server and display in SharePoint Environment (Office 365) using SharePoint Hosted app.

But I'm receiving this error:

Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'

Here is my code:

Can we give the Network Credentials details on SharePoint-hosted app development?

Can we use Cisco based Custom web service in SharePoint-hosted app on Office 365?

My requirement is get items from Cisco based Custom web service and display items in SharePoint Environment (Office 365) using SharePoint Hosted app.

But its getting error Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'

Here is code:-

How we provide the Network Credentials details for custom web service on SharePoint-hosted app development  ?

Status code: HTTP 401 The remote server returned the following error while establishing a connection - 'Unauthorized' inIn SharePoint Hosted app

canCan we use third party custom Web services in SharePoint-hosted app on Office 365  ?

My Requirementrequirement is to get an item from Casio Web server and display in SharePoint Environment  (Office 365) using SharePoint Hosted app. But its getting error "Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'".

code But I'm receiving this error:-

Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'

$(document).ready(function () {Here is my code:

$(document).ready(function () {

    (function () {
        alert('Executed');
        var context = SP.ClientContext.get_current();
                
        var request = new SP.WebRequestInfo();
        
        request.set_url(
            "http://Otherdomain/BookingService.asmx"
            );        
        request.set_method("GET");

        request.set_headers({ "Accept": "application/json;odata=verbose" });
        var response = SP.WebProxy.invoke(context, request);

        context.executeQueryAsync(successHandler, errorHandler);

        function successHandler() {
            if (response.get_statusCode() == 200) {
                // Load the OData source from the response.
                var responseData = JSON.parse(response.get_body());
                // log this to console so you can inspect it
                console.log(responseData)
            }
            else {
                var errordesc = "Status code: " + response.get_statusCode();
                errordesc += "\n" + response.get_body();
                alert(errordesc);
               // console.log(errordesc)
                txtOutput.text = errordesc;
            }
        }
        function errorHandler() {
            //console.log(response.get_body());
            txtOutput.text = 'Error';
        }
    })();

});

});

Can we give the Network Credentials details on SharePoint-hosted app development  ?

Thanks

Akash

Status code: 401 The remote server returned the following error while establishing a connection - 'Unauthorized' in SharePoint Hosted app

can we use third party custom Web services in SharePoint-hosted app on Office 365  ?

My Requirement is get item from Casio Web server and display in SharePoint Environment(Office 365) using SharePoint Hosted app. But its getting error "Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'".

code :-

$(document).ready(function () {

(function () {
    alert('Executed');
    var context = SP.ClientContext.get_current();
            
    var request = new SP.WebRequestInfo();
    
    request.set_url(
        "http://Otherdomain/BookingService.asmx"
        );        
    request.set_method("GET");

    request.set_headers({ "Accept": "application/json;odata=verbose" });
    var response = SP.WebProxy.invoke(context, request);

    context.executeQueryAsync(successHandler, errorHandler);

    function successHandler() {
        if (response.get_statusCode() == 200) {
            // Load the OData source from the response.
            var responseData = JSON.parse(response.get_body());
            // log this to console so you can inspect it
            console.log(responseData)
        }
        else {
            var errordesc = "Status code: " + response.get_statusCode();
            errordesc += "\n" + response.get_body();
            alert(errordesc);
           // console.log(errordesc)
            txtOutput.text = errordesc;
        }
    }
    function errorHandler() {
        //console.log(response.get_body());
        txtOutput.text = 'Error';
    }
})();

});

Can we give the Network Credentials details on SharePoint-hosted app development  ?

Thanks

Akash

HTTP 401 'Unauthorized' In SharePoint Hosted app

Can we use third party custom Web services in SharePoint-hosted app on Office 365?

My requirement is to get an item from Casio Web server and display in SharePoint Environment  (Office 365) using SharePoint Hosted app.

But I'm receiving this error:

Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'

Here is my code:

$(document).ready(function () {

    (function () {
        alert('Executed');
        var context = SP.ClientContext.get_current();
                
        var request = new SP.WebRequestInfo();
        
        request.set_url(
            "http://Otherdomain/BookingService.asmx"
            );        
        request.set_method("GET");

        request.set_headers({ "Accept": "application/json;odata=verbose" });
        var response = SP.WebProxy.invoke(context, request);

        context.executeQueryAsync(successHandler, errorHandler);

        function successHandler() {
            if (response.get_statusCode() == 200) {
                // Load the OData source from the response.
                var responseData = JSON.parse(response.get_body());
                // log this to console so you can inspect it
                console.log(responseData)
            }
            else {
                var errordesc = "Status code: " + response.get_statusCode();
                errordesc += "\n" + response.get_body();
                alert(errordesc);
               // console.log(errordesc)
                txtOutput.text = errordesc;
            }
        }
        function errorHandler() {
            //console.log(response.get_body());
            txtOutput.text = 'Error';
        }
    })();

});

Can we give the Network Credentials details on SharePoint-hosted app development?

Source Link

Status code: 401 The remote server returned the following error while establishing a connection - 'Unauthorized' in SharePoint Hosted app

can we use third party custom Web services in SharePoint-hosted app on Office 365 ?

My Requirement is get item from Casio Web server and display in SharePoint Environment(Office 365) using SharePoint Hosted app. But its getting error "Status code: 401,The remote server returned the following error while establishing a connection - 'Unauthorized'".

code :-

$(document).ready(function () {

(function () {
    alert('Executed');
    var context = SP.ClientContext.get_current();
            
    var request = new SP.WebRequestInfo();
    
    request.set_url(
        "http://Otherdomain/BookingService.asmx"
        );        
    request.set_method("GET");

    request.set_headers({ "Accept": "application/json;odata=verbose" });
    var response = SP.WebProxy.invoke(context, request);

    context.executeQueryAsync(successHandler, errorHandler);

    function successHandler() {
        if (response.get_statusCode() == 200) {
            // Load the OData source from the response.
            var responseData = JSON.parse(response.get_body());
            // log this to console so you can inspect it
            console.log(responseData)
        }
        else {
            var errordesc = "Status code: " + response.get_statusCode();
            errordesc += "\n" + response.get_body();
            alert(errordesc);
           // console.log(errordesc)
            txtOutput.text = errordesc;
        }
    }
    function errorHandler() {
        //console.log(response.get_body());
        txtOutput.text = 'Error';
    }
})();

});

Can we give the Network Credentials details on SharePoint-hosted app development ?

Thanks

Akash