473,800 Members | 2,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

consuming a WCF RESTFUL web service with sencha touch 1

2 New Member
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 2096

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

Similar topics

1
3325
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 with my ASP.Net web application. How can I do this? Is it possible to do so? thanks in advance...
1
1053
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 consuming the web service? Do I have to create a dll and put it in each of these applications bin directory or can I just use the asmx file like the VS ide does? Again the web service is on a different server than the seperate asp.net...
2
1353
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 xd.Load("D:\Inetpub\webservice_xml\redbook.xml") Return xd end function
0
1571
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 webservices in http://upload.eraserver.net/circle24/worldtime/worldtime.asmx?WSDL.Can anybody give me simple example(website link) for consuming webservice(other than local host). Mani
0
985
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, it works perfectly. It passes the correct credentials and returns data as expected. However, when I attempt to consume the web service in an ASP.NET project, it fails. I'm getting a http error (bad gateway), so I think it's failing at the...
1
1988
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 ran into compile error, even though I did add the web reference in exactly the same way as the test application. In the code, I have something like this: using WebServiceConsumer.localhost;
8
9849
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
2256
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 specs of the web service require me to authenticate using the Username Token Profile spec from WS-Security. Any idea on how to do this?? Thanks.
6
23931
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 incorrect or because the message contains an invalid or expired security context token or because there is a mismatch between bindings. The security context token would be invalid if the service aborted the channel due to inactivity. To prevent the...
0
1865
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 regarding how to implement web-service interfaces the RESTful way. Suppose I create a RESTful service to expose books as entity. Then 1. When displaying the index of books, how to implement filtering? The web-service interface should take...
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10505
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.