You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Jo...@filternet.nl on 2014/08/20 07:43:19 UTC

Still problem connecting to RESTServices

I am deploying an test at cloudbees and put strategy to AuthenticationSessionStrategyTrusted in web.xml

No problem direct access through browser. But with Angular.JS I get 'status: cancelled' in Chrome under network and no results.�

Any Idea?



In app.js I use the following method. That one works fine for other service...


	function ISISwww($scope, $http) {

	$http({

	method: "GET",

	url: 'http://isisprutsapp.johandoornenbal.eu.cloudbees.net/restful/'

	}).

	� � success(function(isisdata) {

	� � � � $scope.isisdata = isisdata;

	� � });

	};

�




Re: Still problem connecting to RESTServices

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi Johan,
sorry for the delay.

I've put together a new github project at [1] that gets the above working.
 For me, at least...

Should hopefully be easy enough to combine in your project, or start afresh.

Cheers
Dan

NB: as I think I've mentioned in the past, the intention is to provide a
simplified AngularJS service to the RO resources/representations.  The
spec/desgn is more or less there, see [2], but no implementation as of yet.
 One way forward might be to collaborate on providing such an
implementation, perhaps?  Note that that will be using TypeScript, rather
than vanilla Javascript.

[1] https://github.com/danhaywood/isis-angularjs-simpleapp
[2] http://spirolibraries.github.io/Spiro.Angular/




On 20 August 2014 06:43, <Jo...@filternet.nl> wrote:

> I am deploying an test at cloudbees and put strategy to
> AuthenticationSessionStrategyTrusted in web.xml
>
> No problem direct access through browser. But with Angular.JS I get
> 'status: cancelled' in Chrome under network and no results.
>
> Any Idea?
>
>
>
> In app.js I use the following method. That one works fine for other
> service...
>
>
>         function ISISwww($scope, $http) {
>
>         $http({
>
>         method: "GET",
>
>         url: '
> http://isisprutsapp.johandoornenbal.eu.cloudbees.net/restful/'
>
>         }).
>
>             success(function(isisdata) {
>
>                 $scope.isisdata = isisdata;
>
>             });
>
>         };
>
>
>
>
>
>