Returning XML is an option, but keep in mind you're double encoding the
data.  Web services are supposed to return data as XML, not as an entity
encoded string that when decoded gives you XML.

Here's what you get when you return XML from a web service in CFMX:

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope
xmlns:soap-env="http://www.w3.org/2002/06/soap-envelope";>
        <soap-env:Body>
                <getQuestionsResponse xmlns="urn:x-mynamespace">
                        &lt;?xml version="1.0" encoding="UTF-8"?&gt;
                        &lt;questions&gt;
                                &lt;question&gt;
                                        &lt;id&gt;1&lt;/id&gt;
                                        &lt;text&gt;In the past have you
done your own data anlysis with the Ranking &amp; Estimates publication
data?&lt;/text&gt;
                                &lt;/question&gt;
                                &lt;question&gt;
                                        &lt;id&gt;2&lt;/id&gt;
                                        &lt;text&gt;If so, do you feel
the Web Analysis system facilitated your data analysis?&lt;/text&gt;
                                &lt;/question&gt;
                                &lt;question&gt;
                                        &lt;id&gt;3&lt;/id&gt;
                                        &lt;text&gt;What features would
you like to see added to a future version of the Web Analysis
application?&lt;/text&gt;
                                &lt;/question&gt;
                        &lt;/questions&gt;
                </getQuestionsResponse>
        </soap-env:Body>
</soap-env:Envelope>


But it's supposed to look like this:

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope
xmlns:soap-env="http://www.w3.org/2002/06/soap-envelope";>
        <soap-env:Body>
                <getQuestionsResponse xmlns="urn:x-mynamespace">
                        <questions>
                                <question>
                                        <id>1</id>
                                        <text>In the past have you done
your own data anlysis with the publication data?</text>
                                </question>
                                <question>
                                        <id>2</id>
                                        <text>If so, do you feel the Web
Analysis system facilitated your data analysis?</text>
                                </question>
                                <question>
                                        <id>3</id>
                                        <text>What features would you
like to see added to a future version of the Web Analysis
application?</text>
                                </question>
                        </questions>
                </getQuestionsResponse>
        </soap-env:Body>
</soap-env:Envelope>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to