Seeing all your e-mails with questions about webservices, it looks, like
myself, you are struggling to get webservices to work within Flex.
Personally I investigated the compliance of Flex for both RPC/Encoded and
DOC/Literal webservices. I concluded that Flex supports the RPC/Encoded
webservices fully, but for support of the DOC/Literal webservices it was
less complete. From the SOAP message below, it looks like you are using
DOC/Literal webservices, since the encoding is missing in your XML
attributes like <wsu:Created>.
I wrote a detailed report on this compliance analysis, and sent it to the
Flex development team. If you send me your private e-mail address, I can
send the same report to you, since it might help you.
My email address is: franck (dot) de (dot) bruijn (at) zonnet (dot) nl
Cheers,
Franck
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, June 02, 2006 10:11 PM
To: [email protected]
Subject: [flexcoders] E4X, SOAP and namespaces, oh my!
There seems to be a significant shortage of information regarding the
use of these 3 things together. For the life of me I cannot solve this
seemingly simple problem. I have a SOAP call whose returned xml starts
out like this:
<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:Header>
<wsu:Timestamp
xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
<wsu:Created>2006-06-02T19:48:15Z</wsu:Created>
<wsu:Expires>2006-06-02T19:53:15Z</wsu:Expires>
</wsu:Timestamp>
</soap:Header>
<soap:Body>
<GetDocumentResponse
xmlns="http://mysite.com/BackOffice/DocumentMetadata">
But when I use the following code to retrieve content from it
namespace dm = "http://mysite.com/BackOffice/DocumentMetadata";
use namespace dm;
var x:XML;
x = new XML(event.message.body);
wtf = new XMLListCollection(x..RPRDocumentHistory.Entry);
I get a list of Entry nodes that have all 4 namespace declarations
attached to them even though the original nodes didn't have any.
Additionally, my DataGrid that uses wtf as its dataProvider gets
populated with blank entries (I can roll over them but no text is
displayed), which I have experienced before and is somehow related to
namespace issues.
How can I fix this? Are there any articles/tutorials that address
these topics in depth?
Thanks,
Ben
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

