473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

consuming a WCF RESTFUL web service with sencha touch 1

2
SALAM all.
i'm doing a cross mobile app using sencha touch 1 and i want to consume a RESTFUL web service that i made it with WCF.
the link ti my web service is "localhost:8732/log/log/admin/pass/admin" and in my sencha touch 1 app, i add this code
Expand|Select|Wrap|Line Numbers
  1. Ext.Ajax.request({
  2.    url: 'http://localhost:8732/log/log/admin/pass/admin',
  3.   success : function(response, opts) {
  4.       var obj = eval('('+ response.responseText+ ')');
  5.       Ext.Msg.alert("Bienvenue ",obj);
  6.      alert("entre dans la fonction succe");
  7.    },
  8.   failure: function(response, opts) {
  9.       Ext.Msg.alert("error ",response.status); 
  10.  }
  11.  });
  12.  
but only the failure function work, i can't retreive the expected data.
how can i fix it.
thank you
May 22 '12 #1
0 2087

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Yoshitha | last post by:
HI Hi I am working on a ASP.Net web application. I have to build a windows service which will have functions that returns Current Systems CPUID etc... I need to consume this Windows service...
1
by: unwantedspam | last post by:
We have a webservice on a central webserver. I can go to my browser and look at the service, see the methods... I need to create several seperate asp.net applications in notepad. How do I go about...
2
by: s | last post by:
'project with web service <webmethod()> _ public function myws(id as integer) 'do db stuff with id and build document Dim xd As New XmlDataDocument...
0
by: plmanikandan | last post by:
I need to develop a application to consume a webservice. For consuming web service i tried a example in Consuming a Web Service in C# in http://www.csharphelp.com.But i am uanble to use that...
0
by: J Ames | last post by:
I'm confused on this one. I work behind our company firewall. I created a web service that accesses an external web site, using the WebProxy class, and when I test the web service in the browser,...
1
by: =?Utf-8?B?TG9uZyBOZ3V5ZW4=?= | last post by:
Hi, I've developed a web service and a test application. From the test application, I was able to call the web service successfully. However, when I tried to call it from a class library, I...
8
by: Mo | last post by:
Hi, I can not find a decent example showing how to consume a asp.net 2.0 web service using classic ASP. Does any body have an example I could use? Thanks
2
by: rh1200la | last post by:
Hi all. I need to consume a web service in .NET which were written in Java. I am able to add them fine as web references in visual studio as well as create the necessary objects. However, the...
6
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, Recently I'm confused by this exception. ----- The message could not be processed. This is most likely because the action 'http://tempuri.org/IBCC2MatrixService/UserMatchingSearch' is...
0
by: cwinay | last post by:
Hi all, This is not specific to Ruby on Rails but a generic question regarding RESTful implementation. I learned that RR guys are best to seek help from. There are couple of conceptual questions...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.