Reading result from Webservice

I get a webservice as a result:

"< StockQuotes > < Stock > < symbol > ABC < / symbol > <last> 20.24 < /last> < Date > 06/08/2010 < / Date > < time > 16:00 < / Time > < change > 0.00 < / change > < N/A Open > < / Open > < n/d high > </h igh > < low N/A > < / Low > < Volume > 0 < / Volume > < MktCap > 41.563 B < / '. "MktCap > < PreviousClose > 20.24 < / close precedent > < PercentageChange > 0.00% < / PercentageChange > < AnnRange > 14.72 - 20.97 < / AnnRange > < wins > 0,706 < / wins > < P-E > 28.67 < / P-E > < name > ABC Corporation C < / name > < / Stock > < / quotes >.

This is stored in the event.result property in the ResultHandler.

How can I parse this response and reading, for example, last tag?

event.result.Last gives an error.

Thank you

SAM

Hello

Replace your resultHandler() with the below a function...

private void resultHandler(event:ResultEvent):void
{
var resultXML:XML = new XML();
resultXML = new XML (event.result as String);

If (resultXML! = null & resultXML.hasOwnProperty ("Stock"))

{

trace (resultXML.stock.Last);
Display.Text = resultXML.Stock.Last;

}
}

Thank you

Jean Claude Chari

Tags: Flex

Similar Questions

  • In the bar when I write sth such as address: soccer, it leads to search results from yahoo? How do I will change it give me the results of google search?

    In the bar when I write sth for example to address: "soccer", it leads to search results from yahoo. How do I will change it give me the results of google search?

    Hi vavamvak,

    You should take a look at article in the database Search the Web from the address bar . It will show you how to change the default address bar search provider.

    Hope this helps!

  • When I type in the address bar, yahoo search results appear. This just started happening, he showed the results of google search before. How can I get the results from google instead of yahoo?

    If I type "NBA" in the address bar, I get results from yahoo. I don't want the results of yahoo, I want Google results. This just started today. How can I get Google search results to show after typing in the address bar?

    1. Type of topic: config in the address bar and press on enter
    2. Accept the warning message that appears, you will be taken to a list of preferences
    3. Locate the preference keyword. URL, right-click on it and choose reset

    This will restore it to Google.

  • Bootcamp - Windows 10 should not see or read files from the disk HARD Apple intern.

    I have just successfully Windows 10 next OS X on my 15 "Macbook Pro mid-2014.

    Windows 10 should not see or read files from the disk HARD Apple intern.

    Should which driver I uninstall?

    On OSX, if the following Terminal command produces any output, then you cannot read partition OSX on the side Windows? FileVault2 will also disable access to the OSX partition.

    Cs diskutil list

  • How to read messages from a blocked number?

    How to read messages from a blocked number?

    You do not have.

    You need to unlock and then you can read the messages that comes after unlock it.

  • How to read continuously from the rs232?

    Hello

    I'm new to LabVIEW and my questions would be obvious for some for you. So please help if you know the solution.

    It's for my school project. For your information, we need to schedule a Committee of Altera DE2 to control traffic lights (something like that) and at the same time, the Commission shall forward the States of enlightenment to a computer with LabVIEW installed via an RS-232 cable.

    The rest of the project was fine except for the part of LabVIEW, because as I said earlier, I'm new to LabVIEW.

    We use the "basic series write and Read.vi" in the folder examples of NEITHER. The problem is that we do not know how to change the vi in order to receive the data that come the DE2 Board permanently. Each time, the vi stops reading after receiving 24 bytes of data.

    So, the first question is:
    1.) how to read continuously from the RS-232 port? (We tried to use while "loop" but without success, maybe we were doing it the wrong way.) If you know the solution, please enlighten us for us in a detailed manner.

    (2) Secondly, once we have received the 'chain', how can convert us to bits (0 and 1) so that we might be able to manipulate the bits, for example turn on the LEDs that correspond to the bits.

    Thank you.

    Instead of reading the bytes of the port so to read that many bytes (which may be zero), just do a VISA read for 1 byte.  He will wait for this next byte.

    To get an array of Boolean out of this byte, use this code.  He turns the characters into a byte array.  Takes the first and the only element of this array, and then converts this single U8 number into an array of bytes.

    Which country are you?  I've never seen or heard lights orange before.  Only the yellow lights.

  • Can read data from xls using teststand 3.5?

    Hello

    I use 3.5 TestStand and LabVIEW 8.je know these are quite old versions now, but we must continue with this on a test bench.

    My question is how can I read data from the file xls using TestStand 3.5? I have already mentioned a few posts on this, and one response suggested that I should use "tGetExcel" using ActiveX adapter. I tried to run the test example related to "http://forums.ni.com/t5/NI-TestStand/Write-or-read-to-Excel-from-TestStand/td-p/250439/highlight/tru...", but a run-time error. He says that "the tGetExcel type library information not found. Make sure that the server is registered in the system.

    TestStand 4.2, I could easily run excel at the base of operations by using the Office Excel Toolkit.

    I was wondering, is there another way, I can read just .xls file data by using Teststand 3.5?

    Thank you

    Niraj.

    Please check this example for charger of property:

    C:\Program Files (x 86) \National Instruments\TestStand 3.5\Examples\LoadingLimits

    This shows the limits of excel file loading.

    But you can load the values of the variables-consult the help file / Reference manual for this type of step.

    Also in the loader type forum search property - you can find more information.

    I hope this helps.

  • reading emails from gmail by labview

    I easily found a sample program to send an email to Gmail in LabVIEW and it works well. But I want to read emails from Gmail in LabVIEW so. Is this possible? Thank you

    Jay


  • read data from xlsx file

    How to read data from an Excel 2010 worksheet with the .xlsx extension?  The data I want, it's on one of the 10 tabs in the file, I have to choose which programmatically.  I have the Report Generation Toolkit for LV2012, but all the screws that come with it seem to focus around writing data to a spreadsheet Excel and make charts and whatnot.  I want to * read * an Excel worksheet.  Seeking answers led to many 'Open it and save it as tab delimited text', which I can't do because I need data from different tabs, and because this file is quite dynamic with many users opening and adding several times.  In order to save the tab I want as a tab delimited text file per programming, I'm back a square, how to open it?

    My solution would ideally fill in the blanks of: spreadsheet.xlsx---> _---> 2 or 3D data table.

    Thank you

    Adam

    This fixes:

    https://decibel.NI.com/content/docs/doc-3033

  • A transport-level error has occurred when receiving results from the server. (provider: TCP provider, error: 0 - the semaphore timeout period has expired.)

    Hello

    I get the below error message while my windows application inserts data in SQL Server.

    A transport-level error has occurred when receiving results from the server. (provider: TCP provider, error: 0 - the semaphore timeout period has expired.)

    I use LINQ-to-SQL.  SQL Server is installed on Windows server 2003.

    We are using SQL server 2008 r2.

    When we insert large data base records, approximately 1 million we get this question.

    Please suggest.

    Hello

    When you use Windows server, we ask you to send the query in the link depending on whether they are the experts.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    Thank you.

  • How to read data from an excel and HTML file

    Hello

    I write a 2D-array of string in Excel/HTML file using the generation of reports.

    Can someone tell me how to get back in return, the written data, same files again and display in table format.

    Thank you & best regards

    Visuman

    You can use activex to read data from the excel fileback to the table format... through this vi... may b this will help you...

  • Cannot read iTunes from USB. Windows media player cannot play the file. The player might not support the file type or does not support the codec used to compress the file?

    Cannot read iTunes from USB. Windows media player cannot play the file. The player might not support the file type or does not support the codec used to compress the file?

    Ask the question in the Apple Forums:
    https://discussions.Apple.com/index.jspa

  • Read properties from other applications JAD

    Hello

    I need to know if there is a way to read all properties (including custom properties) from files JAD of other applications installed on the device. The goal is to identify all applications that have a specific property in the JAD file and display a list of these applications (and possibly of throw)...

    I am aware of this solution , but it seems only to read information from the request that.is JAD actually run the code.

    Welcome on the support forums.

    the article seems to cover that, just read all the groups instead of only your.

  • Windows 7 search returns results from Outlook 2013, but links to the message will not open the e-mail message.

    Windows 7 search returns results from Outlook 2013, but links to the message will not open the e-mail message.  Other results such as Excel or Word work.  When you click on the result of the e-mail, the small window at the bottom of the page displays only the title of the email but no information such as the type of file or the date that you would see with other types of file returned.

    Hi Houston,

    Please refer to the article:

    Open the troubleshooter for search and indexing

    http://Windows.Microsoft.com/en-in/Windows7/open-the-search-and-indexing-Troubleshooter

     
    For outlook, try built-in archiving option to facilitate the research for you. Please see the description and functionality of AutoArchive in Outlook from the link below.
    http://support.Microsoft.com/kb/830119
     
    Let us know the result. If the problem is still not resolved, we will be happy to help you further.
  • Reading Messages from a uniform distributed queue without an MDB

    WebLogic Server Version: 10.3.4.0

    I am currently facing a problem trying to read messages from a queue of distributed uniform with a spring JMSTemplate Weblogic.
    We have a cluster created with 2 servers.
    Each server in the cluster has it's own server JMS (JMSServer-1, JMSServer-2), each has its own persistent store
    We have a JMSModule. This JMSModule contains a factory connections (Subdeployment = sub1 Target = mycluster) and also contains a uniform tail (Subdeployment = sub1 Target = MyCluster) distributed

    A peak at our Spring JNDITemplate configuration looks like:
    < bean id = "messagingJndiTemplate" class = "org.springframework.jndi.JndiTemplate" >
    < property name = "environment" >
    < Accessories >
    < prop key = "java.naming.factory.initial" > weblogic.jndi.WLInitialContextFactory < / prop >
    < prop key = "java.naming.provider.url" > t3://some.server.name1,some.server.name2:8001 < / prop >
    < / Accessories >
    < / property >
    < / bean >

    It seems that every time that I call the JMSTemplate.browse function in my client, I'll read the messages in the server 1. Then the next bed request messages that are found on server 2. Each request is sent around in circles.

    I then tried to change the JMSModule. The new JMSModule contains a factory connections (Subdeployment = sub1 Target = mycluster) and also contains a uniform distributed Queue (Subdeployment = sub2 Target = JMSServer-1, JMSServer-2)

    After this change, it seems that every time that I call the JMSTemplate.browse function, I'll read the messages in any server, I have a session with my client. If I'm logged on server 1, I can only see messages in Server 1 and vice versa.


    My question is, how to configure Weblogic to pass messages from TWO servers in my cluster? I guess since it was a cluster installation, I would get some sort of uniform distributed queue unique view to access via JNDI, but appears not to be the case.
    Thanks in advance.

    Browsers and receivers always attach to a single member of a destination distributed.

    WebLogic BMD, on the other hand, automatically handle the task of fixing the receivers to each Member and are fairly simple to code and use these days. If you have the possibility to use WL BMD, I recommend their use. (There is no equivalent for the browsers).

    Spring does not have the same STANDARD, but it seems not be a workaround for the spring receiver number (but not for browsers - receivers only). Here is a sample spring impl that attaches a subscription for each Member of a subject is distributed:
    http://sleeplessinslc.blogspot.com/2011/12/WebLogic-JMS-partitioned-distributed.html.

    If the foregoing is not useful and that you must scroll through each message on each server in the cluster, then you must write special code case to check each separately. There are two options to list the destinations and work with each of them - 'messages management' JMX mbean API (WLST Jython scripting or Java-based) and the availability of destination weblogic.jms.extensions API.

    HTH,

    Tom

Maybe you are looking for