RE: [flexcoders] E4X, SOAP and namespaces, oh my!
Hi Ben, 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Friday, June 02, 2006 10:11 PM To: flexcoders@yahoogroups.com 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:Created2006-06-02T19:48:15Z/wsu:Created wsu:Expires2006-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.
RE: [flexcoders] E4X, SOAP and namespaces, oh my!
Ben, if a parent type declares the default namespace (as it does on GetDocumentResponse) then child elements that do not redeclare the default namespace nor use a prefix to another namespace will inherit that parent namespace. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Friday, June 02, 2006 4:11 PM To: flexcoders@yahoogroups.com 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:Created2006-06-02T19:48:15Z/wsu:Created wsu:Expires2006-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 Yahoo! Groups Sponsor ~-- You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM ~- -- 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.
Re: [flexcoders] E4X, SOAP and namespaces, oh my!
Thanks, Peter, good to know.Any idea how to solve my DataGrid dataProvider problem? Its columns use child nodes as their dataField attribute but it seems like they are not accessible because of the namespace being there. Do I need to somehow strip out the namespaces or include the namespace in the dataField attribute? I know this is doable, and probably simple, but I can't figure it out or find it documented anywhere. Thanks,BenOn 6/2/06, Peter Farland [EMAIL PROTECTED] wrote: Ben, if a parent type declares the default namespace (as it does onGetDocumentResponse) then child elements that do not redeclare thedefault namespace nor use a prefix to another namespace will inheritthat parent namespace. -Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of ben.clinkinbeardSent: Friday, June 02, 2006 4:11 PMTo: flexcoders@yahoogroups.comSubject: [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 thisseemingly simple problem. I have a SOAP call whose returned xml startsout like this:soap:Envelope xmlns:soap= http://schemas.xmlsoap.org/soap/envelope/xmlns:xsi=http://www.w3.org/2001/XMLSchema-instancexmlns:xsd= http://www.w3.org/2001/XMLSchemasoap:Headerwsu:Timestampxmlns:wsu=http://schemas.xmlsoap.org/ws/2002/07/utility wsu:Created2006-06-02T19:48:15Z/wsu:Createdwsu:Expires2006-06-02T19:53:15Z/wsu:Expires/wsu:Timestamp/soap:Headersoap:Body GetDocumentResponsexmlns=http://mysite.com/BackOffice/DocumentMetadataBut 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 declarationsattached to them even though the original nodes didn't have any.Additionally, my DataGrid that uses wtf as its dataProvider getspopulated with blank entries (I can roll over them but no text is displayed), which I have experienced before and is somehow related tonamespace issues.How can I fix this? Are there any articles/tutorials that address thesetopics in depth?Thanks,Ben Yahoo! Groups Sponsor ~--You can search right from your browser? It's easy and it's free.Seehow. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~--Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- 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.