The Service WCF and Blackberry Widget does not. See where I am going wrong?
I'm creating a widget of BB with Visual Studio 2008 and I created a WCF Service hosted in Windows Azure.
This is one of the methods in the WCF Service:
public string ClockIn(string emailAddress) { try { using (var dc = new TEI_DataContext(_MyDc)) { SecurityLogin sl = dc.SecurityLogins.SingleOrDefault(s => s.EmailAddress == emailAddress); var tc = new TimeClock { ClockIn = DateTime.Now, UserName = sl.UserName }; dc.TimeClocks.InsertOnSubmit(tc); dc.SubmitChanges(); return "You're Clocked In!"; } } catch (Exception ex) { return ex.Message; } }
I tested it with a Console Application like this, and it works GREAT!
var client = new TEIServiceReference.Service1Client(); string result = client.ClockIn("[email protected]"); Console.WriteLine(result); Console.Read();
Here is the address of public WCF Service: http://a1e17152bcf647aaa300ccb5a8a2a2c5.cloudapp.net/Service1.svc
Here is my HTML code for the widget:
TEI Time Clock
And here's my JavaScript code:
var xmlHttp = new XMLHttpRequest(); function ClockIn() { var url = "http://a1e17152bcf647aaa300ccb5a8a2a2c5.cloudapp.net/Service1.svc/ClockIn/[email protected]"; xmlHttp.open('GET', url, true); xmlHttp.onreadystatechange = callbackFunctionClockIn; xmlHttp.send(null); } function callbackFunctionClockIn() { if (xmlHttp.readyState == 4) { var result = xmlHttp.responseText; //result = result.getElementsByTagName("string")0].childNodes[0].nodeValue; alert(result); } }
When I run the widget, an EMPTY popup appears and it NOT me clock. Can you see what I'm missing?
Thanks a lot for your help and your time!
Brenda
The? did not help either. Bad luck!
I just hired a Blackberry app developer, and he thought of it in Java.
Thanks for trying to help out well!
Tags: BlackBerry Developers
Similar Questions
-
LG C500-G. AEE5GE1 with Windows 7 home prem OA MEA have been formatted. But despite giving the product key and Windows registry does not recognize the activation. Help, please
Name of the operating system Microsoft Windows 7 Home Premium
Version 6.1.7601 Service Pack 1 Build 7601
Manufacturer of operating system Microsoft Corporation
System name HANDSOME-PC
System manufacturer LG Electronics
System model C500.-g. AEE5GE1
System Type X 86-based PC
Processor Intel (r) Core i3 CPU M 390 @ 2.67 GHz, 2666 Mhz, 2 Lossnay, 4 logical processors
H46YSF00 Version/Date of BIOS American Megatrends Inc., July 2, 10
Product key:
X 16-96084
CONCERNING
TUESDAY BIOJY
Have you tried to restart by phone?
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us -
Safari can't open what I think is the redirection page and says he does not know how to open the app.
It gives me the following information:OS X does not know how to open the addresses starting with aam
Click on the link below and download Creative Cloud Installer file and use them to install the creative Cloud Desktop application.
https://ccmdls.Adobe.com/AdobeProducts/KCCC/1/OSX10/CreativeCloudInstaller.dmg
-
Name of user and password PPPoE
Hey Im trying to set up my PS3 network and I need the PPPoE username and password, but Im not sure where to find it?You'll support group of your phone provider or to use any method of contact that they provide. That username and passowrd come from them.
Tom Ferguson
-
BBM blackBerry Smartphones and Blackberry World does not?
I rebooted my phone £15 24 hours ago and I did many batt pull but my BBM and Blackberry World do not work.
I am able to access the BBM, but I'm unable to send/receive messages/updates.
When I try to go into the Blackberry world a message pops up saying: "You are not connected to the wireless network", but I checked my connections, and there, he says that I'm connected to the wireless network.
Can someone help me?
Thank you
Hello
On your home screen for connection management > Service status > BlackBerry Internet Service = what is the status now?
-
Audio Player and Tumblr Widget does not
I downloaded the Audio Player and Widgets for Tumblr, but they do not work.
Error of 295. I use Adobe Muse 2014.
Can you help me solve this problem?
Thank you
The Tumblr widget you choose works only, when you have published your site, because it needs support of PHP. This mesns, you cannot use the "Preview" or "Preview in browser" functionality of Muse. And: this widget will not work on a Business Catalyst site hosted, because BC does not support PHP.
On the audio player I have csn can't say anything due to lack of experience.
-
I get this error and is it possible to solve this problem without re-creating the service/s once again, etc. Just curious, if you have suggestions/steps I may have missed or I'll drop and recreate new services
In any case, I have a backup of the emkey.ora and place it in the sysman/config directory, but still does not work... Please see below...
C:\Documents and Settings\abigail > emctl status emkey
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Enter the password for the repository:
********
****
The key of the MA is not configured properly or is corrupted in the file system and the DOE
s does not exist in the repository of management. To correct the problem:
(1) (copy the emkey.ora another WHO file or backup machine OH/sysman/c
onfig directory.
(2) configure the emkey.ora file by running ' emctl config emkey - emkeyfile < emkey.
".ora file location >.
C:\Documents and Settings\abigail > emctl config emkey - emkeyfile E:\app\abigail\p
roduct\11.2.0\dbhome_1\sysman\config
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Enter the password for the repository:
********
****
The key of Em is already configured. To override the current configuration, run "em".
CTL emkey < options > config - force. "
C:\Documents and Settings\abigail > emctl config emkey - emkeyfile E:\app\abigail\p
roduct\11.2.0\dbhome_1\sysman\config-force - sysman_pwd *.
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
The key of the MA could not be configured. Cannot access the file E:\app\abigail\product
\11.2.0\dbhome_1\sysman\config.
C:\Documents and Settings\abigail > emctl dbconsole sysman_pwd secure *.
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
http://Abigail:5501 / console/em/aboutApplication
DBCONSOLE already stopped... Fact.
Officer is arrested... Fact.
Dbconsole fixing... Has begun.
Please enter repository schema password:
Dbconsole fixing... Failed.
EMKey is misconfigured.
Sorry but I have to ignore your suggestion and don't worry how I spend my time
AND OHMYGODD IT WORKSS! For later use, this is how I solved it based on my research, in fact based on a particular search:
http://franjv.blogspot.com/2013/08/eMKey-problems-in-Oracle-RAC-11gr2.html
Thank you the one who wrote this and... is it the same "Fran" who helped me last time? Coincidence?
In any case, thanks
-
Update of the applications of "Apply" blackBerry Smartphones does not work
I have a Blackberry Storm. In the desktop software, I select the Application Option. In the screen of the Application it says that I have to update the kernel. I select it. When I press the button 'apply' nothing happens. When I get the desktop software it tells me that I have not updated all my applications. Why the 'Apply' does not work? Desktop Sotware is 6.0.1.18. I use Windows 7.
I really don't think worries of Blackberry. I know not why this Forum exists since Blackberry doesn't seem all repair, place on it. I don't know that they read all this. I sent the following to Verizon to convey my feelings ONLY. Verizon put me right back in the loop of Blackberry Web. Hope you have better luck. I'm heading to another provider.
__________________________________________
To Verizon:
First of all, I don't need help. I send you just at this address because I have no idea who to send it to who would care. Last year, I bought a Blackberry Storm at Verizon Wireless and to this day, I hate it.
I'm just a lonely individual (NOT corporate) and by looking for any kind of help, I determined as soon as they don't care unless it is company.
I have all the typical problems of the Blackberry plus many other problems. Some problems have been on the Forum and never resolved.
Here are the problems that continue with my phone:
-Constantly having to pull the battery to recover memory.
-Battery requires a draft because of many blockages.
-Request for changing the settings of Blackberry have nothing change.
-Alerts such as alarms and applications ringing with no way to silence (all ALERTS OFF).
-Voice dialing does not recognize name if the contacts name.
-Applications to the daily updates.
-office takes forever to connect.
-office says that it is a necessary kernel update that cannot be selected for the update.
-No way to search in the calendar.
-Too little Blackberry allows applications to exist on the device.
-Phone OS has never had an update to fix anything (that I know).
-Touch is impossible!
Again, I DO NOT ask for help. I want someone to know RIM, why I, like many other non-corporate people, will move to the iPhone when my contract on the Blackberry is up this coming June. If RIM maintains this, companies will soon do the same.
-
I recently bought 2 bits of software that contain the Apple and Microsoft (Vista) versions on one CD. When I insert the CD into my Vista PC, it can not find or load the installation files. Instead, if I look at what is on the drive, I see an icon of the Red Apple. If I put the same CD on Vista PC to my wife, it loads correctly. If I load the version of WIndows 7 software, it loads correctly and run the program until he acknowledges that the operating system is Vista not Windows 7. Something triggered something on my Vista PC to do brand new loading on my CD player program needs to ignore files in vista and show files apple as if they were independent. Is there a toggle for this problem? If I run the software of Microsoft ' Fix It' - the solution that I see on most boards, it does not. As far as I know, other Vista users are facing this problem without solution by MIcrosoft or any other tech tips.
The problem is with a program from Mediafour. It's called xplay 3. If you uninstall this program, everything works fine.
-
registration for the service is missing & windows update does not not in windows 7
I got the error "registration for the service is missing or corrupted" when I used the diagnostic download bits of one of your answers to someone else. I can't download the updates of windows from 08/10/16 - the latest downloads on 08/02/16. I did a full scan with McAfee & there is no problem in that. Given that the system sought & found these updates 08/10/16, the fan noise has served continuously as in a loop. I managed to stop that noise will 'services.msc', choose 'windows update', by selecting Properties & stop. If I start it again, it seems to go on and on but updates still do not download. I have Windows 7 Home Premium on a laptop. Can you help me?
1. have you ever run the McAfee Consumer products removal tool?
- Fact: McAfee (and Norton) applications are notorious for not not upgrade (or uninstalling) itself. "Leftovers" can be here your troublemaker.
2 - is the same computer - not necessarily the same problem - as in one or more of these previous threads of yours?
-
Help, please! It's Christmas and I'll be staying NJ in Los Angeles, my phone will not ring all of a sudden and the screen does not indicate when a call comes, also not get the notification sound when I get a text message, so now I can't even tell when my phone rings, even if I am looking at him - even for a text message I've checked everything and it's normal and active - my carrier is AT & T - someone ' one knows what's the problem? Thank you very much!
Please mark the thread has been resolved, it is better to other users with the same problem
-
After you have installed the latest version of Flash Player, on the YouTube videos, I try to read the message "an error has occurred. Please try again later. "appears. In addition, on sites like Tumblr other media, such as audio and videos uploaded, play not at all - it's just a white space where it should be. This set works fine in Chrome.
I have tried everything I can think of - I deleted the cache and deleted cookies, updated all plug-ins, uninstalled and reinstalled Flash and Firefox, disabled Ad-Block, he ran in Safe Mode and navigation private, restarted my laptop a couple of times - but none of this has worked.Try turning off protected in Flash drive mode.
See:
-
Update of the freezing window and windows 8 does not upgrade to 8.1 with error code 80070103
ORiginal title: Update window point of freezing and windows 8 not upgrading to 8.1
When I try to check the updates of the window is blocked and I cannot nor click on any other button or can I close the window. I can also go to 8.1 I get on an error 80070103
Hey Watson,
Run the Windows update troubleshooting tool can help get the problem solved.
Question: Computer crashes when checking for Windows updates
Method 1: run Windows Update Troubleshooter and check if it helps.
a: press the logo Windows + O to open the search box.
b: Type Troubleshooting, press ENTER.c: now, click on System and Security.
d: Now click on Windows Update
Method 2: Follow the steps in the link provided.
Windows Update crashes when the download or installation of updates
http://support.Microsoft.com/kb/2700567#Method1Note: The applications that came with your PC or you installed fromWindows Store will be reinstalled, but all the apps you have installed other Web sites and DVD is deleted. Windows puts a list of applications on your desktop after you refresh your PC.
Question: Get the error code 80070103 0 x during the upgrade to Windows 8.1 of Windows 8
Click on the link below and see if it helps.
http://Windows.Microsoft.com/en-us/Windows-8/update-from-Windows-8-tutorial
I hope the information helps solve the problem. If you have any additional questions or for any question related to Windows, feel free to post. We're here to help.
-
Move the update start and end tab does not work
I can't use the shortcut to move the tab to start or finish, it moves the scroll in this tab at the bottom bar and the top of the page.
Now, it worked. I had to press alt + b and shift + tab to use the shortcut ctrl + home or end.
I don't know how I missed the last word "twice" in this sentence, but hey it works.
"Some of these shortcuts require the tab currently selected to be"in focus". Currently, the only way to do it is to select an adjacent object and ' tab in ' the active tab, for example, by pressing Alt + D to select the address and then bar Shift + Tab twice. » -
Hello
We just put a HP Envy 5530, set up was fine, I tried installing but get the message "cannot find printer" over and over again.
I tried to download printing HP and Scan doctor but also, it does not find the printer.
I ran two reports of diagnoses on the printer, everything looks ok, I have an IP address with an IP address that suggest that it has connected wirelessely, the network report said no problems were discovered.
I tried disabling my firewall, all made once again, still nothing.
I put the IP address in the address bar, but it does not open!
I don't seem to have a printer/USB cable witht the printer so I can't tey wireless - I one of them, it was a new purchase?
I don't really have an idea what to do next, it seems I have a printer connected to the network, your laptop to talk to the network but nothing to talk with each other. I also tried to find the printer with my IPad, but he also could not find a printer.
Any ideas, im really frustrated
Thanks in advance
Hello
They are on the same Beach, they should be. Now please reset it and try again
1 reset the printer
b press settings (wrench),
(b) press tools then use the arrorw down to access page 2/3,
(c) touch Restore Factory Defaults - wait a few minutes
2 reinstall the printer
(a) you can use the CD, but it will download the file and may take ages to download. Please download the software and the following drivers
http://ftp.HP.com/pub/softlib/software12/COL47810/MP-115828-6/EN5530_198.exe
(b) turn on the printer,
(c) right click on the downloaded file and select run as administrator.
d select Wireless and then follow the instructions on the screen.
Kind regards.
Maybe you are looking for
-
Hello. I have 3 devices. 2 of them are at work, so I don't want to sync items such as extensions (xnotifier, for example, is to synchronize my CPA), passwords for my PC at home with these two devices. But I want to synchronize my bookmarks and other
-
I just bought the HP notebook 15-r211na and cannot install the network drivers. Initially, the network drivers do not appear to be installed on the laptop as when I went to the device, under 'Network adapters' Manager, the only thing that he was 'Rea
-
Satellite A100 restarts when HDD WD connected?
Hi, I searched this issue in this forum, but I don't find it so here you go. I recently bought a WD portable hard drive and when I plugged, he enrolled in the icon section, then it would go to a blue screen and do a reboot even time I had connected h
-
HP TouchSmart 300-1120 do not start and with noisy fan
Hello Children were using the PC and recording of large amount of data (about 30 GB) on desktop? Suspecting this could be trigerred overheating that caused the major failure. The dust was found on the heatsink, but nothing was completely clogged. Whe
-
Why User Account Control allow me on IE without permission after resetting IE
A few days ago I couldn't get on the Internet because IE would not work and internet connection was ok so out of desperation I did a reset of the EI. It still does not work then a member of the family came and got it works, but now I get the popup to