This is the code i am using. I tried this since I have to be on the test server 
(remote) to use the BD version since i am running Adobe locally. I dont think 
trace will work. Its coming up blank:

var xmlResult:XML = XML(e.result);
default xml namespace = 
"http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security 
";     
var ns1:Namespace = new Namespace("http://www.newatlanta.com/bluedragon";);
Alert.show(xmlResult.loginResult.ns1::columnList.toXMLString(),"xlNames");

----------------------------------------
From: "Ryan Graham" <[email protected]>
Sent: Tuesday, February 03, 2009 9:03 AM
To: [email protected]
Subject: RE: [flexcoders] XML walkdown Help 

Yeah, notice the 2 distinct namespaces being used here: The reponse/result 
wrapper uses 
"http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security".The
 columnList and data use "http://www.newatlanta.com/bluedragon"; If you do as 
Tracy said, and set the default namespace to 
"http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";,
you would need to use the other namespace technique to let e4x know you are
looking for nodes in a different namespace than the default as already defined.
Something like: default xml namespace =
"http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";;
 var ns1:Namespace = new
Namespace("http://www.newatlanta.com/bluedragon";);trace(xmlResult.loginResult.ns1::columnList.toXMLString());
 Even though the namespaces share the same base URL 
("http://www.newatlanta.com/bluedragon";),
the XML processing model is unaware and doesn't care - all it sees
is unique strings, each of which defines a separate namespace using the xmlns
attribute declaration. HTH,Ryan  From: [email protected]
[mailto:[email protected]] On Behalf Of Tracy Spratt
Sent: Tuesday, February 03, 2009 9:35 AM
To: [email protected]
Subject: RE: [flexcoders] XML walkdown Help columnList
will need to be prefixed with the ns:: also.  As will all nodes. 
I'd advise setting the default namespace as I posted, to make the
expressions easier. 

Tracy
Spratt
Lariat Services

Flex
development bandwidth available
----------------------------------------
From: [email protected]
[mailto:[email protected]] On Behalf Of Wally Kolcz
Sent: Tuesday, February 03, 2009 10:23 AM
To: [email protected]
Subject: RE: [flexcoders] XML walkdown Help 

Thanks for being patient and helping me. I really need to read more about
XML and Flex/AS3. I am so used to RemoteObjects.

Based on what was posted from Ryan:var ns:Namespace = new
Namespace("http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";);trace(xmlResult.ns::loginResult.toXMLString());

How can I step down to the columnList?

I tried var xlNames:XMLList = xmlResult.ns::loginResult.columnList;

but it came up blank too...
----------------------------------------
From: "Tracy
Spratt" <[email protected]>
Sent: Tuesday, February 03, 2009 6:28 AM
To: [email protected]
Subject: RE: [flexcoders] XML walkdown HelpGood, you
are on the way. You are only one step from your columnList. 

Tracy
Spratt
Lariat Services

Flex
development bandwidth available
----------------------------------------
From:[email protected]
[mailto:[email protected]] On Behalf Of Wally Kolcz
Sent: Tuesday, February 03, 2009 7:54 AM
To:[email protected]
Subject: RE: [flexcoders] XML walkdown Help 

Ok, I tried both approaches and they gave me this.

<loginResult 
xmlns="http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";
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";>

  <columnList xmlns="http://www.newatlanta.com/bluedragon";>

    <string>uniqname</string>

    <string>role</string>

    <string>firstName</string>

    <string>lastName</string>

  </columnList>

  <data xmlns="http://www.newatlanta.com/bluedragon";>

    <ArrayOfAnyType>

      <anyType
xsi:type="xsd:string">wkolcz</anyType>

      <anyType
xsi:type="xsd:string">admin</anyType>

      <anyType
xsi:type="xsd:string">Wally</anyType>

      <anyType
xsi:type="xsd:string">Kolcz</anyType>

    </ArrayOfAnyType>

  </data>

</loginResult>
----------------------------------------
From: "Tracy
Spratt" <[email protected]>
Sent: Monday, February 02, 2009 1:44 PM
To: [email protected]
Subject: RE: [flexcoders] XML walkdown HelpYes, darn
it,  missed that,  Ryan is correct, there will a namespace
problem.   You can
define a default" namespace, and not have to use the prefix in all of the
expressions.default
xml namespace = 
"http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security
";  But you
will still need to get the expression right.  Look close at your
expression and at your xml.

Tracy
Spratt
Lariat Services

Flex
development bandwidth available
----------------------------------------
From:[email protected]
[mailto:[email protected]] On Behalf Of Ryan Graham
Sent: Monday, February 02, 2009 4:01 PM
To:[email protected]
Subject: RE: [flexcoders] XML walkdown Help Looks like you're having namespace
issues. The default namespace is 
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";,
so you need to use this when drilling down. Something like: var ns:Namespace = 
new
Namespace("http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";);trace(xmlResult.ns::loginResult.toXMLString());
 You can do this for all nodes with a
namespace defined. HTH, Ryan From:[email protected]
[mailto:[email protected]] On Behalf Of Wally Kolcz
Sent: Monday, February 02, 2009 1:42 PM
To:[email protected]
Subject: re: [flexcoders] XML walkdown Help 

Here is a more accurate output on the Blue
Dragon server:

<loginResponse 
xmlns="http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";
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";>

  <loginResult>

    <columnList xmlns="http://www.newatlanta.com/bluedragon";>

      <string>uniqname</string>

      <string>role</string>

      <string>firstName</string>

      <string>lastName</string>

    </columnList>

    <data xmlns="http://www.newatlanta.com/bluedragon";>

      <ArrayOfAnyType>

        <anyType xsi:type="xsd:string">wkolcz</anyType>

        <anyType xsi:type="xsd:string">admin</anyType>

        <anyType xsi:type="xsd:string">Wally</anyType>

        <anyType xsi:type="xsd:string">Kolcz</anyType>

      </ArrayOfAnyType>

    </data>

  </loginResult>

</loginResponse>

I tried var xmlResult:XML = XML(e.result); which gives me the above.
var xlColumns:XMLList = xmlResult.loginResponse; which comes up blank.
----------------------------------------
From:
"Wally Kolcz" <[email protected]>
Sent: Monday, February 02, 2009 11:08 AM
To: [email protected]
Subject: [flexcoders] XML walkdown Help

I am getting a weird return from Blue
Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList
variables but am having a devil of a time walking down this path to the core
nodes. Any ideas on how to make this usable?

Tracy has been trying to help me, but this return item is impossible to work
with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but
it doesn't work. Neither does the same for data.

Here is the result that is returned from Blue Dragon:

<ns1:loginResponse 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="http://security.umich.edu.prmcprojects"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

  <loginReturn xsi:type="ns2:QueryBean" xmlns:ns2="http://rpc.xml.coldfusion";>

    <columnList soapenc:arrayType="xsd:string[8]"
xsi:type="soapenc:Array" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>

      <columnList xsi:type="xsd:string">

        UNIQNAME

      </columnList>

      <columnList xsi:type="xsd:string">

        PASSWORD

      </columnList>

      <columnList xsi:type="xsd:string">

        LASTNAME

      </columnList>

      <columnList xsi:type="xsd:string">

        FIRSTNAME

      </columnList>

      <columnList xsi:type="xsd:string">

        POSITION

      </columnList>

      <columnList xsi:type="xsd:string">

        DEPARTMENT

      </columnList>

      <columnList xsi:type="xsd:string">

        ROLE

      </columnList>

      <columnList xsi:type="xsd:string">

        ISACTIVE

      </columnList>

    </columnList>

    <data soapenc:arrayType="xsd:anyType[][1]"
xsi:type="soapenc:Array" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>

      <data soapenc:arrayType="xsd:anyType[8]"
xsi:type="soapenc:Array">

        <data xsi:type="soapenc:string">

          wkolcz

        </data>

        <data xsi:type="soapenc:string">

          2113

        </data>

        <data xsi:type="soapenc:string">

          Kolcz

        </data>

        <data xsi:type="soapenc:string">

          Wally

        </data>

        <data xsi:type="soapenc:string">

          Senior ColdFusion
Architect

        </data>

        <data xsi:type="soapenc:string">

          PRMC

        </data>

        <data xsi:type="soapenc:string">

          admin

        </data>

        <data xsi:type="soapenc:int">

          1

        </data>

      </data>

    </data>

  </loginReturn>

</ns1:loginResponse>

This message is private and confidential. If you have
  received it in error, please notify the sender and remove it from your 
system.         

This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.



Reply via email to