473,387 Members | 3,684 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,387 software developers and data experts.

Parsing XML web service in flash

Hi,

I am using a web service in AS3 found here - http://labs.alducente.com/index.php?...13#comment-118

Everthing is set up and working, if you look at the the link you will see this line of code:
trace(serviceResposne)
It spits out this xml from my own data base in ASP.net 2.0:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<getTitlesResponse xmlns="http://tempuri.org/">
<getTitlesResult>
<xsd:schema id="NewDataSet" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="Table">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="title" type="xs:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet>
<Table diffgr:id="Table1" msdata:rowOrder="0">
<title>Biology ch1</title>
</Table>
<Table diffgr:id="Table2" msdata:rowOrder="1">
<title>Vocabulary</title>
</Table>
<Table diffgr:id="Table3" msdata:rowOrder="2">
<title>WWII</title>
</Table>
<Table diffgr:id="Table4" msdata:rowOrder="3">
<title>Chemistry</title>
</Table>
<Table diffgr:id="Table5" msdata:rowOrder="4">
<title>Measurment</title>
</Table>
<Table diffgr:id="Table6" msdata:rowOrder="5">
<title>Biology ch2</title>
</Table>
</NewDataSet>
</diffgr:diffgram>
</getTitlesResult>
</getTitlesResponse>
</soap:Body>
</soap:Envelope>

How can I print the titles?

I have tried many combination of:
trace(serviceResponse.NewDataSet.Table);
trace(serviceResponse.soap::Envelope);

from other examples but nothing works.

Thanks,
4dplane
Mar 30 '08 #1
3 3242
pronerd
392 Expert 256MB
Since your question relates to using ASP not XML this should be posted in an ASP forum.
Apr 1 '08 #2
jkmyoung
2,057 Expert 2GB
If the serviceResponse is some sort of xml object, you'd need to run a quick search on the xml, eg using xpath "//title" getting back a node list.

Then recurse through the node list, outputting the text values of each of the lements.
Apr 1 '08 #3
Here is a link to EE that explains this scenario.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XML/Q_23280332.html
Apr 2 '08 #4

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

Similar topics

0
by: erickrefener | last post by:
Hi, I use PHP (and PHP socket functions) to exchange very short XML documents between two Flash clients like this : <MESSAGE id="myid" text="mytext" /> I don't parse the XML document within PHP...
2
by: John | last post by:
Hi! I am creating a webservice that needs to communicate with the Flash component. I am creating the Flash component myself so can add any type of functionality to it. I need to know how can I...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
10
by: Mel | last post by:
i have a need to access variables from outside of my applications. i need to parse the compiler created symbol tables and store them so that i can reference them later. these include C++ object...
19
by: mathieu | last post by:
Hello, I am trying to parse a string and I am surprised by the result(*) When using: sscanf(s, "%03u%c", &val, &f); If a number less than 3 digits is found, shouldn't sscanf report that ? ...
9
by: ankitdesai | last post by:
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics"...
1
by: John Wolff | last post by:
I’m trying to upload a file to a Web Service. I have to submit the file using a standard HTML form with the <input type=“file” /tag. Ultimately, we are submitting the file from a Flash 8...
2
by: treybraid | last post by:
My Flash file is a GameCenter where team standings are kept.. I have it set up right now with the master spreadsheet programmed that is linked to a dummy sheet that is saved as a CVS doc and loaded...
2
by: kenatessence | last post by:
Hello, I am working on making a flash site dynamic by using XML. I have already made the flash site read the XML perfectly, but i now have to make a back end where the owner can go in and post new...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.