HttpService with JSON server - help please

Hello!
I'm moving in return a JSON object in flex using HttpService. The scenario is like this - using HttpService I call an action as I am using Struts 2.0. This action is supposed to return a string in JSON format. When I pass in return the data as XML data is displayed correctly with the structure hierarchail. But when I pass the JSON string back it does not display anything.

This is the call to the server
< mx:HTTPService id = "srv" url = "... / myaction/getSomeData.action"/ > "

the value of srv is coming with a null value.

I am a total newbie to Flex.

Thanks for any help in advance.
Rohit

First, you will need to read your response as a simple text by specifying resultFormat = "text" in your service:

http://192.168.103.128:8081/ManageMe/manageme/generateXMLForGantt.action"resultFormat ="text"/ >

Now in your result event you read the answer in the form of simple text:

var rawData:String = String (event.result);

Of course, now, you must encode the string as a JSON object. Flex is not a built-in JSON encoder/decoder. So here's the library done by Adobe/Flex people than hanldes JSON:

http://code.Google.com/p/AS3corelib/

Once you have downloaded this library and you copied into your lib foleder, the following line would look like:

try {}
Alert.Show (rawData);
var o: Object = JSON.decode (rawData);
Alert.Show (o ['baselineEnd']);

}
{catch(e:Error)})
handle the error
}

should work!

ATTA

Tags: Adobe LiveCycle

Similar Questions

  • cannot delete photos with indicator.  help, please.

    I can't delete photos with indicator.  help, please. Thank you. Dick

    Can't stop without context and details

    What version of the OS (you say OS X 10.8.5 - is that correct?) and iPhoto or PHotos?

    What has changed since it worked?

    LN

  • Error offline - we are sorry, but there was a communication error with the server. Please try again and if the problem persists, contact Adobe Techincal Suport...  (INVALID_QUERY: XMLList object)?

    After a number of years of service, my Adobe Premiere CS4 gives me the following error message:

    Error offline - we are sorry, but there was a communication error with the server. Please try again and if the problem persists, contact Adobe Technical Support...  (INVALID_QUERY: XMLList object).

    I use this software on an old Dell desktop computer to two year with many members and drive.  It is a stand-alone application, not connected to a server.

    Anyone have any ideas on how to solve this problem?

    I think it has to do with the central resource is no longer supported.  Everything works OK if you ignore the message?

  • communication error with the server. Please refresh this window

    Sometimes, actually most of the time, when I try to log on to kuler I get this error message "error communicating with the server. (Please refresh this window", and it doesn't matter if I refresh or not I just can't use it.
    I tried to open it in firefox and IE and I get the same error in both browsers. I would really like to be able to use this great feature so please tell me if there is anything I can do to prevent this unfortunate error.

    Hello, I'm sorry know you this. This bug has been fixed for the next version, which will be available soon. Details here

    In most cases, if you click on the message or the kuler UI behind the error message, the message should disappear. Then click on the left navigation (themes, create, etc.) and the themes will load. If the connection, try a new browser window, or a new browser, I can usually get in eventually. Thank you for your patience.

    Saami

  • "Page not found" problem only with firefox. Help, please

    I get the error "page not found" only with firefox. Works fine on Chrome!

    I don't really know what causes this problem.

    Help, please.

    My Web site address:

    http://laberintowines.CL/

    Thank you very much.

    Please delete browser cookies, then check if still the same issue reset preferences.

    The site works fine on my end with firefox and other bowers:

    Thank you

    Sanjit

  • Windows Home Server help please with the reader.

    I have a Windows Home server in my office that has a single hard drive in it.  I continue to be told to use the repair utility when I turn on my computer.  I bought a new drive for the server.  Now that I need help, it's how to duplicate the new disc of the former, is there a way to do it, or do I have to copy all the content on another machine on the network, and then install the operating system from the beginning.  I want to avoid the loss of data.  Any help is greatly appreciated.

    There are essentially two options available

    Place the new drive as the primary drive and keep the original as a secondary disk. Install WHS as a repair install and it should pick up original and index folders and re-create the tombstones for them. Then use the move to folder option in the console to make the folders shared the second partition of the disk. However, the indexing process is quite intensive and is perhaps not ideal with a line of demarcation for lack of drive.

    Alternative, remove the old drive and install the new, install WHS as a new facility that will create partitions C and D, including the new shared folders empty. Once the installation is finished, put the old one in as second drive or if this is not possible an external drive dock and then copy the contents of the old drive in the new. That would be my preferred option because it is perhaps easier and safer.

    There is no option to save and copy and settings users, even with a repair installation, you must manually recreate the users.

  • After the recent Firefox updates prevent links to several websites to operate while it doesn't have this problem with other browsers - help please.

    Since a recent update of Firefox links to several Web sites is no longer working. They used to be fine and I liked Firefox. The problems do not exist with other browsers such as Internet Explorer, Google Chrome. Specifically, on talktalk.co.uk news links do not work, any more than those in 'my account '. On Barclays.co.uk the link to print my statement works no-same on MBNA.com
    There are several solutions proposed around the internet, but all are complex, so far none have worked and I don't see why I should have to make the suggested adjustments. Firefox has been great - now, it is not. The problem seems to be the update. Please help me get my Firefox where it should be.

    AFAICT then who are perfectly normal links on the news page

    The http://www.talktalk.co.uk/ opens if I click the guide Link TV/news on the https://sales.talktalk.co.uk/ page.

    If I right click on a link and use inspect element to open the Inspector then I see that there is an event onclick on the links (annex 'ev' button), so make sure that you are not blocking JavaScript.

    Start the computer in safe mode Windows with network support (on the startup screen, press F8) as a test to see if that helps.

  • PROBLEM WITH NETBOOK! Help, please

    Hello guys,.

    I'm having a serious problem with my HP mini 210 netbook 1028TU.

    I formatted my hard drive to create two different partitions, about a month ago and installed Windows 8 Preview Release from the Microsoft Site
    After 2 weeks of use, once Windows defender detected and quarantined 4 Trojan virus. When I saw that I tried to remove them, while eliminating the netbook suddenly stopped without any BSOD or a message.

    I tried to restart, but now it just won't start, nothing happened since the beginning of the start screen. So I did a USB bootable windows7 to reformat the hard drive and do a clean install of windos7 Starter as it was over early. It went well and I deleted the partitions and developments and begin the installation. During Installation when it reaches 35%, he stopped and showed windows cannot be installed. I tried again, but now he hung up while he was showing "the installation program starts.

    Now when I start my PC it shows: -.

    Your PC needs to be repaired
    and an unexpected error has occurred.

    Error code: 0xc0000034

    In addition, I ran test drive by the bios and it stuck and showed "Replace hard disk 1" in RED

    Please guys help me I really need for my netbook

    Fix.

    Removing and reinstalling the drive is a troubleshooting step to determine if your hard disk is damaged.

    Do that first.

    If no joy, then the hard drive will be replaced by a new to make you a netbook to a usable state.

  • Go crazy with HA! Help, please...

    Hello

    First of all, I'm quite new in the world of vm and I'm sure I did wrong to something stupid that you guys can find! (I hope).

    Here is my configuration:

    2 PE R610 two Dell servers running ESXi 4 with exactly the same hardware configuration.

    1 Dell PE R610, with less memory and storage, with ESXi 4 I will use later for vCenter, (vCenter is currently on my laptop)

    1 Dell MD3000i SAN configured correctly and by train to work.

    I have created a cluster, added the 2 hosts, namely srv1 and srv2 (with respectively 192.168.126.202 and 192.168.126.203 IP address). So far, everything went well and was pretty easy to do!

    I would now like to turn the HA on this cluster, therefore, I activated in my cluster settings and the following problem occurred: "unable to complete the configuration of the ha agent on the host computer.

    Configs here are screenshots of errors and also my network and other...

    ! 1.jpg | thumbnail = true!

    I really hope you can help me because I have a deadline to make everything beautiful in this Friday

    Thanks in advance,

    LF

    Make the entrance to each server's FULL domain name in sysconfig

    Host name = the server's FULL domain name

    Make this entry both server and make sure the FULL domain name is the same in/etc/hosts and sysconfig otherwise you won't get any screen

  • Problem with export! Help, please

    Hello

    I am currently working on my new project in Redcode 4.5 k shoot and I got in big trouble export my movie.

    I tried to export the movie to the H.264 format / HDTV 1080 p 25f and there was NO noise or a sound terrible when I looked the exported movie!

    Can it be a problem that I copied a number of sequenzes varius in a sequence? I did it because I wanted to have a sequence where I can put the pieces together.

    Maybe that's the problem!

    Please help me!

    M

    Guten Tag,

    Am fantastischen an meinem neuen Projekt und beim Exportieren ist folgendes aufgetreten problem:

    ICH Versuche in first Photo aus einer zu exportieren sequence das mit dem Vorgabe Format H.264: HDTV 1080 p 25f dann erhalte ich einen Film mit entweder Bel your oder mit einem hohen Pfeiffen.

    DAS Filmmateriao das ich wurde auf einer bearbeite redone Redcode Codec quality 4.5 k.

    Kann're breast dass der nicht ist weil ich fertig einzelne possible export sequences kopiert habe und einer neuerstellten sequence zusammengefügt habe, eine quasi sequence as scenes standing habe um sie fertig sleeps aus the other scenes-sequences zusammenzustellen.

    Ware toll wenn someone could help!

    Danke

    M

    Hello! Welcome to the forums here at Adobe!

    As long as you can hear the sound when you play through your final sequence, you should have no problems to export as long as your audio options are correctly set in your export Panel. Nesting of the sequences that you have described is a very common task and will not at all affect your audio files.

    Make sure that your "Export the Audio" checkbox is checked in the window of your export. If this isn't the case, then that would explain your problems. If it is checked, then there may be something more deep as the cause, in which case it would be helpful if you could post us screenshots of your table of sound mixing and the head section of your audio tracks in the timeline panel.

    Also make sure that you're using Adobe PrPro 5.5 and that you have all the updates correct, including the RED importer, as the new RED files do not work in older versions of first. If files were shot on the RED Epic, sound doesn't work at all in native file (known bug) first and so you will have to use program Cine - X RED to export audio files to make separately and synchronize with your video. However, you would never get audio in your timeline at all, and so I think you would have noticed this problem before that you have to export, so I think that's not your problem.

    Good luck and report what you find with your export settings!

  • I can't install Outlook Express, I don't understand what to put in for the incoming mail POP or outgoing server - help please

    I have Yahoo Mail but have trouble with Explorer and simply do not know how to check questions for Outlook Express.  How do I know which is my server or I need this pop thing?  I'm with bt internet.com sorry to be so obtuse that my senior moments seem to have become weeks and days!

    Although Outlook Express would not be my choice (windows live mail would be) fundamentally he need to go into settings and configure the outgoing server to look for (something like smtpout.bt.internet.com) and the incoming server to get (something like pop.bt.internet.com)

    As Richard said that they are specific to your ISP, and you must call for details)

    Good luck

  • WRT54G v8.2 static IP for the internet server help please

    I'm having an argument with my ISP.

    I have a WRT54G, blah blah DSL 5 MB and I want to have one of my computer that is accessible from the internet. The rest can stay on the DCHP intranet.

    My ISP insists that, for this I need as a static IP address on their part. They offer only the ip static or dynamic, a service or the other, and I can set up with an IP address static both my router and my machine I want to be able to access on the internet.

    Seems to me that I need TWO static IP. One for the router and the other entitled it the internet service computer.

    Can someone please give me feedback on this? A lot of satisfaction.

    Jeff

    Topic 1. If the router support: Yes. Otherwise, configure a static IP address directly on the computer.

    Re 2. Yes.

    Re 3. Yes.

    Re 4. Yes.

    It's pretty simple. Unfortunately, some Linksys routers have problems of transmission port 80 because this port is used for the web interface. It may be necessary to use a port other than 80.

  • BlackBerry sudden Z10 and serious problem with Z10 NEED HELP Please

    I have a z10, one of the first who came out in Toronto (if it is one)
    (difference), a few hours ago, I fell into a serious and sudden
    problem.

    I was able to swipe left and right between the pages of apps, even fall down
    Since the Summit, but I cannot open anything, not even not making a call or settings
    Options.

    Any time I try, for a fraction of a second, it looks like its about load
    something then nothing. (image slides to the right quickly and goes back
    each attempt)

    So I first did a reset, same problem, so I did a battery pull (15 minutes) and the problem is.

    I tried via USB to do a backup on blackberry Manager and maybe do a
    Re - install everything, but when I was invited to the password
    my camera on my PC, it told me that it was (I use a wrong password
    This blackberry on my computer 4-7 days a week, twice a day sometimes for an
    year and I have never miss typed my password, nor have I changed it)

    After trying everything to make sure that the first letter was maybe upper/lower
    cases, even my other possible phone password, nothing worked...

    On the 5th unsuccessful attempt my phone prompted me to type "blackberry", which
    I did, then I typed my password on my phone that I type in about 15 times
    one day because I put my phone in a lock in 5 minutes and has always said that he was wrong... I'm no attempt of 9/10 on and lost
    for options.

    Please if anyone can give me any suggestions, or even how do I back up my phone
    and now, or I have a previous backup of whipe form 4 months ago that I
    I wouldn't come back in the worst cases.

    Thanks in advance for your help

    Well... If you are in 9 out of 10 here and you don't mind not to restore your device, then enter the password again once and then the device should enter the device wipe mode. That will reset your device to factory setting and then you can start fresh by reloading your backup made the earlier

  • Smartphones blackBerry sync with Outlook? Help, please!

    This had everything set up on my old desktop (Windows XP), but just to move to Windows 7.  Downloaded BB desktop 6.1.0.36 and it recognizes my camera and can see media and pix, but when I go to set up the synchronization, it shows olny ASCII and YAHOO as being available for synchronization of calendar and Contacts...

    How to synchronize Outlook?

    Well, I'm not sure of what is "POutlook", but here is my next series of suggestions:

    I suggest the following steps (reboot insert a lot of restarting your PC... not only restarts, but at full power down). In addition, it is recommended that you are connected to the PC on an account with full administrator rights. In addition, under Vista/Win7, use the option "Run As Administrator" for everything.

    In addition, it was also reported that when your user profile on windows (type "echo %UserProfile%" in command prompt) contains spaces, then the installer will not work. To resolve this issue, log off from your Windows account and sign in using the local administrator account (or any other name of account without spaces) and install office (for all users).

    (1) remove the package to update your device OS of your PC (Add/Remove Programs)

    (2) properly uninstall the RIM desktop software:

    • KB02206 How to perform a clean uninstall of BlackBerry Desktop Software
    • Some noted that manually to the search and the removal of all registry keys related to Research In Motion, software from Puma, BlackBerry, etc. to be useful... risky to work with the registry, but nevertheless
    • Others have reported the use of a registry cleaning tool to be also useful
    • Still others have reported the use of your original PIM (Outlook, NOTES, etc.) Installation CD, run the "repair" to be helpful in some situations process

    (3) obtain a new download of the RIM Desktop software:

    (4) to download a new copy of your package to your carrier OS device (on your PC):

    (5) install the software on your PC Desktop

    Installation of 6) (also on your PC), device OS package

    (7) start the configuration Organizer:

    • KB17022 How to configure applications to Organizer for synchronization using BlackBerry Desktop Manager
    • KB23681 How to configure settings to synchronize Organizer data using BlackBerry Desktop Software 6.0

    If all goes well, who's going to make things again.

    Good luck and let us know!

  • I HAVE WIN 7 64-BIT, MOZILLA FIREFOX IS MY BROWSER HASVING PROBLEMS WITH JAVA CAN HELP PLEASE

    I HAVE WINDOWS 7 64 BIT LAP TOP, I'M WITH MOZILLA FIRE FOX AS MY BROWSER, HAVING PROBLEMS WITH JAVA... WHICH SHOULD I USE? ALSO CAN I HAVE THE WINDOWS PHOTO VIEWER TO OPEN FILES

    First; There, please do not type in uppercase.  It is considered rude and make your post less readable.

    The version of Java to use depends on the browser.  Firefox is a 32-bit browser therefore uses the 32-bit version of Java.
    Internet Explorer, for example, has a 32-bit and 64-bit version in Windows 7, the two versions of Java may apply depending on whether you are using.

    The Windows Photo Viewer can open different types of graphic files, what is the problem?

Maybe you are looking for

  • Save the Scan OCR HP

    As of today, when I do an analysis of the OCR, I can't program to save him.  The error message is that the scanned document cannot be saved to the specified location.  All the other scan functions work perfectly and the OCR scan worked fine until tod

  • Why the Info screen called my back camera air ipad 2

    Why the Info screen name my back camera air ipad 2?

  • Update of Microsoft products (Win 7)

    I disabled background 2 options on the "Edit settings" window "Windows update" & now these options are not yet visible. If I click on "Edit settings" on Windows Update screen, I can Change settings screen but the list of options and checkboxes is sho

  • Wireless Fax

    Scenario: 4500 wireless printer, but closest to the phone, jack is at the bottom. We use wireless devices in this area. Is it possible to 'pair' my printer with phones wireless to send/receive faxes?

  • Update Firmware WAP54G

    I'm not able to find a download so I can update my WAP54G v2.08 for the latest firmware.  Can someone tell me please a link? Thank you!