I am trying to access SalesForce WebService from Flex 2.0. In this 
case there is a describeGlobal call that returns the array of 
Objects. If I look at the XML reponse, everything looks correct as 
below

How ever, when I try to access the result object and the types array 
within it, all array members are NULL. I was expecting to get the 
strings below. 

Any idea? I can provide the WSDL and my code if needed. 

Thanks,

--Raghu
------------XML Response-----------------------
body = "<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope 
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"; 
xmlns="urn:enterprise.soap.sforce.com"><soapenv:Body><describeGlobalR
esponse><result><encoding>UTF-
8</encoding><maxBatchSize>200</maxBatchSize><types>Account</types><ty
pes>AccountContactRole</types><types>AccountPartner</types><types>Acc
ountShare</types><types>Approval</types><types>Asset</types><types>As
signmentRule</types><types>Attachment</types><types>Book__c</types><t
ypes>BusinessHours</types><types>BusinessProcess</types><types>Campai
gn</types><types>CampaignMember</types><types>Case</types><types>Case
Comment</types><types>CaseHistory</types><types>CaseShare</types><typ
es>CaseSolution</types><types>CaseStatus</types><types>Contact</types
><types>Contract</types><types>ContractContactRole</types><types>Cont
ractStatus</types><types>Customer__c</types><types>Document</types><t
ypes>EntityHistory</types><types>Event</types><types>EventAttendee</t
ypes><types>FiscalYearSettings</types><types>Folder</types><types>Gro
up</types><types>GroupMember</types><types>Lead</types><types>LeadSha
re</types><types>LeadStatus</types><types>MailmergeTemplate</types><t
ypes>Note</types><types>Opportunity</types><types>OpportunityCompetit
or</types><types>OpportunityContactRole</types><types>OpportunityHist
ory</types><types>OpportunityLineItem</types><types>OpportunityPartne
r</types><types>OpportunityShare</types><types>OpportunityStage</type
s><types>Organization</types><types>Partner</types><types>PartnerRole
</types><types>Period</types><types>Pricebook</types><types>Pricebook
2</types><types>PricebookEntry</types><types>Product</types><types>Pr
oduct2</types><types>Profile</types><types>RecordType</types><types>S
control</types><types>SelfServiceUser</types><types>Solution</types><
types>SolutionStatus</types><types>Task</types><types>TaskPriority</t
ypes><types>TaskStatus</types><types>User</types><types>UserRole</typ
es><types>WebLink</types></result></describeGlobalResponse></soapenv:
Body></soapenv:Envelope>"
------------XML Response-----------------------
View of the variable from Flex Builder
result = mx.utils.ObjectProxy (0x32f3186)
        encoding = "UTF-8"
        maxBatchSize = 200 [0xc8]
        object = Object (0x345c8a6)
        types = Array (0x3452076)
                [0] = null
                [1] = Array (0x3453eb6)
                        [0] = null
                        length = 1 [0x1]
                [2] = Array (0x3453d36)
                [3] = Array (0x3453a96)
                [4] = Array (0x3453196)
                [5] = Array (0x34536d6)
                [6] = Array (0x3453e56)
                [7] = Array (0x344ba36)
                [8] = Array (0x344b736)
....










--
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

<*> 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/
 


Reply via email to