[BUG?] DataSource: getting data from a web service (not data service)

Last post 04-12-2006 4:13 PM by bleroy. 2 replies.

Sort Posts:

  • [BUG?] DataSource: getting data from a web service (not data service)

    04-11-2006, 5:25 PM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    hello guys,

    i'm trying to get info exposed through a web service. i get an error on line 6855 (i know this because i'm including the atlas.js file directly on my html page). it looks like this method is a handler which is called when my web service returns its data from the server side. the following code is from the load method of the Sys.Net.DataSource class:

    var

    url = Sys.Net.WebRequest.createUrl(_serviceURL, _parameters);
    var request = new Sys.Net.WebRequest();
    request.set_url(url);
    request.completed.add(Function.createDelegate(this, onRequestComplete));
    request.timeout.add(Function.createDelegate(this, ready));
    request.invoke();

    so, by default, the xmlhttpexecutor will be used to invoke a web service and get the results. the problem happens on the onRequestComplete method:

    function

    onRequestComplete(sender, eventArgs) {
    onLoadComplete.call(this, sender.get_response().get_object());
    }

    if i'm not mistaken, sender is the XMLHttpExecutor that made the request and it looks like this classe doesn't expose a get_response() method. in fact, the only calss that has this property is the servicemethodrequest class. so, i think that this line should be:

    onLoadComplete.call( this, sender.get_object() );

    am i right? thanks!

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: [BUG?] DataSource: getting data from a web service (not data service)

    04-12-2006, 12:52 PM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    any opinion on this?

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: [BUG?] DataSource: getting data from a web service (not data service)

    04-12-2006, 4:13 PM
    • Star
      14,010 point Star
    • bleroy
    • Member since 04-12-2003, 3:09 AM
    • Redmond
    • Posts 2,296
    • AspNetTeam
    I'll investigate. Thanks, Luis.
    Bertrand
    ----
    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (3 items)