Advertisement

05.10.2008 at 04:35AM PDT, ID: 23391489
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

Need assistance formatting xml returned from a web service in Flash (AS 3.0)

Asked by cursive in Macromedia Flash, Extensible Markup Language (XML), SOAP

Tags:

Hello,
I am using the (attached) Alducente class to connect an AS 3.0 Flash site to a websservice. When the service returns the xml data, it wraps it in <soap> tags, however all the < and > of the XML data are replaced by special characters.

I would need help in being able to treat everything from and including <GetUserResponse> as XML data. I presume this means I need help:

- Stripping the Soap tags
- Formatting the XML togs properly

There is also a possibility that the web service is not formatting the xml correctly, if this is the case, I would need to know what needs changing

Many thanks.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
import alducente.services.WebService;
import flash.events.*;
 
var xm:XML= new XML;
var ws:WebService = new WebService();
 
ws.addEventListener(Event.CONNECT, connected);
ws.connect("http://fakeurl.com/gamesvc.asmx?WSDL");
 
function connected(evt:Event):void {
	ws.GetUser(done, "parakramai@live.com", "false");
}
 
function done(serviceResponse:XML):void {
	xm=serviceResponse;
	trace(xm);
}
 
// Returned XML data
 
<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>
    <GetUserResponse xmlns="http://tempuri.org/">
      <GetUserResult>&lt;ROOT&gt;&lt;User&gt;&lt;LastName&gt;Illeperuma&lt;/LastName&gt;&lt;FirstName&gt;Parakrama&lt;/FirstName&gt;&lt;Email&gt;parakramai@live.com&lt;/Email&gt;&lt;Language&gt;EN&lt;/Language&gt;&lt;OptIn&gt;&lt;/OptIn&gt;&lt;Price1&gt;2&lt;/Price1&gt;&lt;Price2&gt;4&lt;/Price2&gt;&lt;Price3&gt;1&lt;/Price3&gt;&lt;/User&gt;&lt;/ROOT&gt;</GetUserResult>
    </GetUserResponse>
  </soap:Body>
</soap:Envelope>
 
 
[+][-]05.10.2008 at 11:40AM PDT, ID: 21540107

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.10.2008 at 03:09PM PDT, ID: 21540660

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 04:03PM PDT, ID: 21540858

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 04:05PM PDT, ID: 21540866

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Macromedia Flash, Extensible Markup Language (XML), SOAP
Tags: Actionscript 3.0, xml
Sign Up Now!
Solution Provided By: shivaspk
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.10.2008 at 04:15PM PDT, ID: 21540900

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 04:20PM PDT, ID: 21540915

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628