1. #1
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    17
    Vote Rating
    0
    nilesh.chavan is on a distinguished road

      0  

    Default How to call webservice from sencha touch application

    How to call webservice from sencha touch application


    I am very new too work on sencha touch. We have defined some categories to evaluate the sencha touch framework. So one of the task is to call web service and pull / push data to the server.

    If anyone knows the syntax / sample example then please let me know.

    Thanks in advanace,

    Nilesh

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    17
    Vote Rating
    0
    nilesh.chavan is on a distinguished road

      0  

    Question Need help regarding the web service integration and database connectivity.

    Need help regarding the web service integration and database connectivity.


    How to push data to local device Sqllite run time and synchronize it with the web service on the server. Or else let me know the correct way to achieve this task.
    Awaiting for response.

    Thanks in advance for help!!!

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

      0  

    Default


    SALAM nilesh.
    please have you found a solution to call a web service with sencha 1 ?
    if you found a solution, can you post a code showing how consume a web service.
    thank youuu

  4. #4

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

      0  

    Default


    thank you netresource I will try this code and i will tel you the result.
    thank you

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

      0  

    Default


    netresource salam.
    i tryed this code but without success.
    my url to my web service is "
    http://localhost:8732/log/log/admin/pass/admin" i made it with restful WCF . and its returning tha name of the client
    here is what i did in my form sencha 1
    Code:
    
    
    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);

    my target is to make a cross mobile app so i used JSONP, but when i test it in my browser it doesnt work.
    can you correct me the code please.
    thank you


Thread Participants: 2

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