Hybrid View

  1. #1
    Ext User
    Join Date
    May 2007
    Posts
    41
    Vote Rating
    0
    Carel is on a distinguished road

      0  

    Question Ext.data.Store proxy webservice soap

    Ext.data.Store proxy webservice soap


    I would like to populate a grid with an array of type T where that array is the result of a call to a SOAP webservice. I tried ScriptTagProxy and HttPProxy to no avail. The grid itself shows ok but no data shows up. The webmethod is like foo[] getFoos() and works ok and does produce a non empty result set but how do I connect that to Ext.data.Store so that it shows in the grid? btw, a foo is just a string, I just call it bar.

    Script code is like this:

    Ext.onReady(function(){

    var ds = new Ext.data.Store({
    proxy: new Ext.data.ScriptTagProxy({url:
    'local web service with with a foo[] getFoos() method'
    }),
    reader: new Ext.data.ArrayReader({}, [
    {name: 'bar', type: 'string'}
    ])
    });

    var cm = new Ext.grid.ColumnModel([
    {header: "Bar", width: 120, dataIndex: 'bar'}
    ]);

    cm.defaultSortable = true;

    var grid = new Ext.grid.Grid('grid-example', {
    ds: ds,
    cm: cm
    });
    grid.render();

    ds.load();
    });

    TIA,

    Carel

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    2
    tryanDLS is on a distinguished road

      0  

    Default


    In order to call a webservice, you need to be able to pass the method name and parms with the request - you can't just make a GET/POST request to an URL. You either have to build SOAP messages or if your server supports invoking a WS by doing something like myurl.com?method=getParms&arg1=foo&arg2=bar (.Net might allow something like this), you have to pass everything after the '?' as params.

  3. #3
    Ext User
    Join Date
    May 2007
    Posts
    25
    Vote Rating
    0
    rswafford is on a distinguished road

      0  

    Default


    I just ran into this same issue... my web service is written in .NET 2.0, and I've seen posts floating around that you can call it like this:

    http://www.domain.com/Service.asmx/FunctionName?param1=val1&param2=val2

    But I've not been able to get mine to play nice with that type of url. It gives me Request format is unrecognized for URL unexpectedly ending in '/FunctionName'.


    Does anybody know what I'm doing wrong, or how to fix this? Thanks!

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    2
    tryanDLS is on a distinguished road

      0  

    Default


    Can you type that URL into a browser? I would think that something has to be configured in .Net to do that.

  5. #5
    Ext User
    Join Date
    May 2007
    Posts
    25
    Vote Rating
    0
    rswafford is on a distinguished road

      0  

    Default


    Aha!! Got it...in your web.config file you have to add this section:

    <webServices>
    <protocols>
    <add name="HttpPost" />
    <add name="HttpGet" />
    </protocols>
    </webServices>

    Add that to the <system.web> section and it will enable HttpGet and HttpPost methods of accessing your web service. At that point, the Grid binding worked perfectly!

  6. #6
    Ext User
    Join Date
    Jan 2009
    Posts
    1
    Vote Rating
    0
    UdoGerhards is on a distinguished road

      0  

    Default Clean example of who to use ExtJs with Soap?

    Clean example of who to use ExtJs with Soap?


    Hi,

    through my search how to use ExtJs to deal with Soap-Requests i found your threat here at this forum.

    It seems that you've successfully solved your problem and i want to ask you if it is possible to get a clean example from you how to setup ExtJs-DataStore to deal directly with Soap!

    The main thing of interesset for me is, how the DataStorage will invoke the remote function, send the parameters and handles the response.

    Maybe if there are some links with tutorials this would help me also!

    Thanx in advance

    Udo

  7. #7
    Ext User
    Join Date
    Jan 2008
    Posts
    9
    Vote Rating
    0
    KciNicK is on a distinguished road

      0  

    Default


    Quote Originally Posted by UdoGerhards View Post
    Hi,

    through my search how to use ExtJs to deal with Soap-Requests i found your threat here at this forum.

    It seems that you've successfully solved your problem and i want to ask you if it is possible to get a clean example from you how to setup ExtJs-DataStore to deal directly with Soap!

    The main thing of interesset for me is, how the DataStorage will invoke the remote function, send the parameters and handles the response.

    Maybe if there are some links with tutorials this would help me also!

    Thanx in advance

    Udo
    two years later, anyway, i need this too, i didn't find anything that really works, this is ext 1.0 forum, anyone still read it?

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar