1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    14
    Vote Rating
    0
    ajaytaksali is on a distinguished road

      0  

    Question External Web Service integration with Sencha Touch

    External Web Service integration with Sencha Touch


    Hi,

    I am new to Sencha Touch and working on a Case management web application using Sencha Touch. I want to know if how we can integrate External Web service with Sencha Touch. If someone worked on anything similiar or have any documentation, please share it with me.

    Thanks,
    Ajay Taksali

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Location
    Amsterdam
    Posts
    22
    Vote Rating
    2
    savelee is on a distinguished road

      0  

    Default


    I worked with external webservices over JSONP. You can find a example in the Kitchen Sink Demo.

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    14
    Vote Rating
    0
    ajaytaksali is on a distinguished road

      0  

    Question


    Thanks Savelee for your response.
    I want to integrate SOA based web services call with complex data model. Is this possible with JSONP. Do we have any other way to handle it using Java code within Java Script like DWR ...

  4. #4
    Sencha User
    Join Date
    Sep 2010
    Location
    Amsterdam
    Posts
    22
    Vote Rating
    2
    savelee is on a distinguished road

      0  

    Default


    Hey,

    I don't know exactly how the webservice has been build. We worked with a third party who delivered this service. (.NET / WSDL)
    They fixed it, so it can handle JSONP. - And receive url parameters.
    I can just show you an example on the frontend:

    Code:
        getLatestArticleByCategory: function(strCat){
            Ext.util.JSONP.request({
            url: 'webservice-url-here',
                callbackKey: 'callbackLatestArticles',
                params: {
                    category: strCat,
                    articlecount: 10
                },
                callback: function(data) {
                 //do something with data
                }
            });
        },
    good luck with it

  5. #5
    Sencha User
    Join Date
    Dec 2010
    Posts
    14
    Vote Rating
    0
    ajaytaksali is on a distinguished road

      0  

    Default


    It wil be a WSDL.

  6. #6
    Ext JS Premium Member jcrilly's Avatar
    Join Date
    Mar 2010
    Posts
    3
    Vote Rating
    0
    jcrilly is on a distinguished road

      0  

    Default


    You will likely need to implement SOAP on the client side. Afaik, this is not in the sencha lib... I havent seen it.

    Do a google search for "javascript soap"... there a libraries out there that (I suspect) will do it, but its a pain to implement from scratch.

    Or.. maybe the thirdparty app can get updated to support a simple json protocol?

    Do
    Jeff Crilly's work persona

  7. #7
    Sencha User
    Join Date
    Mar 2012
    Location
    Tunisia
    Posts
    74
    Vote Rating
    1
    zied jouini is on a distinguished road

      0  

    Default


    SALAM all.
    please im trying to consume a WCF restful web service from sencha touch 1 from a while but without success.
    the link to my web service is :
    "http://localhost:8732/log/log/admin/pass/admin" this web service allow the authentication
    and in my form i made this:
    Code:
    App.views.BankingLogin = Ext.extend(Ext.Panel, {
     scroll: 'vertical', 
       items: [{
     xtype: 'formpanel',
     id: 'form',
     fullscreen: true,
     cls : 'form',
    
    
      items: [
    {
               xtype: 'fieldset',
               title: 'Sign In',
    },
    {
                xtype: 'textfield',
                id : 'Login',
                label: 'Login*',
                placeHolder: 'login',
                },
    	    {
                 xtype: 'passwordfield',
                 id: 'password',
                 label: 'Password*',
                 useClearIcon: true,
                 placeHolder: 'password',
                },
                
    			{
    			 xtype: 'panel',
    			 defaults: {
    			             xtype: 'button',
    						 style: 'margin: 0.1em',
    						 flex: 1
    			           },
    		     layout: {
    			          type: 'hbox'
    			         },
    			 items: [{
    			          text: 'Valider',
    					  handler: function() {
                        if (Ext.getCmp('Login').getValue() == '') {
    					  Ext.Msg.alert('Impossible de se connecte', 'Login vide');
    					  }
    					  
    					  if (Ext.getCmp('password').getValue() == '') {
    					  Ext.Msg.alert('Impossible de se connecte', 'mot de passe vide');
    					  }
    					  
    					  if (Ext.getCmp('password').getValue() == '' && Ext.getCmp('Login').getValue() == '') {
    					  Ext.Msg.alert('Impossible de se connecte', 'Login & mot de passe vide');
    					  }
    					  
    					  if (Ext.getCmp('password').getValue() != '' && Ext.getCmp('Login').getValue() != '') 
           {
      		
    Ext.util.JSONP.request({
            url: 'http://localhost:8732/log',
                params: {
                    log: admin,
                    pass: admin
                },
                callback: function(data) {
                 Ext.Msg.alert("Bienvenue ",data);
                }
            });
    
    
    
    
    
    
    
    
    					        }
    					                      }
    			        }]
    			},
    
    
                  ]
    }]
    });
    Ext.reg('BankingLogin', App.views.BankingLogin);
    please have you any idea how can i correct my code ??? i want to make a cross mobile app, and i spent very much time searching how consuming a web service.
    thank you

Similar Threads

  1. Sencha Touch MVC framework and SCSS integration guides
    By lexer in forum Sencha Touch 1.x: Discussion
    Replies: 10
    Last Post: 5 Apr 2011, 10:53 PM
  2. Looking for a Sencha Touch Developer to create an awesome web app!
    By WeFeast in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 7 Nov 2010, 12:10 AM
  3. jqplot and sencha touch integration
    By fgeorge in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 16 Oct 2010, 9:28 AM
  4. Touch & Web Service
    By kortovos in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 16 Sep 2010, 12:04 AM
  5. Sencha Touch web apps - on the desktop
    By Frank R in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 29 Jul 2010, 7:33 AM

Thread Participants: 3

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi