Results 1 to 3 of 3

Thread: HTTPService + IOperation HowTo??

  1. #1

    Default HTTPService + IOperation HowTo??

    How do we use HTTPService and IOperation together in a service.

    Code:
    		public function getXXXXs():IOperation {
    			var operation:IOperation = myHttpService.send();
    			operation.addCompleteListener(handleComplete);
    			operation.addErrorListener(handleError);
    			return operation;
    		}
    In the above code, myHttpService.send() return type is AsyncToken.

    Here I am not sure how I suppose to write my code for an HTTPService call and handling the response.

    Would be great if someone can show me a correct approach.

    Thanks.

  2. #2
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default IOperation implementation in the trunk

    In the current release there's no IOperation that works with HTTPServices yet, in the trunk though there is, check it out here:

    https://src.springframework.org/svn/...cript/rpc/http

    So, you either grab just this code from the trunk or make a build from the trunk, which ever is easiest for you.

    cheers,

    Roland

  3. #3

    Default

    Thanks for the pointer. I 'll look into it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •