The default resultFormat, "object" causes Flex to try to convert the xml into a tree of dynamic objects. This is somewhat of a blackbox process and you have no control over it.
It is also the worst of both worlds; Dynamic objects have performance issues, (as does xml) and searching/filtering that object tree is much harder than using e4x expressions. Best practice is to get your data as e4x, then process it yourself into an ArrayCollection of strongly typed value objects. Tracy Spratt, Lariat Services, development services available _____ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jc_bad28 Sent: Wednesday, October 14, 2009 3:01 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Web Service not returning all XML elements. Hi, I've created a simple Web Service for retrieving 25 columns. The ws is setup to return the data as type object. When I go into debug mode and inspect the results only show about 1/2 of the columns are being returned. If I invoke the service from my java client, all of the expected columns are returned. Inspecting the returned XML in the java client doesn't show anything out of the ordinary. In Flex if I set the return type to e4x, all of the elements are returned. Just curious as to why Flex isn't returning all of the elements as objects. Below is the wsdl and a sample of the java invoked xml. - <wsdl:definitions xmlns:wsdl="http://schemas. <http://schemas.xmlsoap.org/wsdl/> xmlsoap.org/wsdl/" xmlns:ns1="http://ws.wso2. <http://ws.wso2.org/dataservice> org/dataservice" xmlns:wsaw="http://www.w3. <http://www.w3.org/2006/05/addressing/wsdl> org/2006/05/addressing/wsdl" xmlns:http="http://schemas. <http://schemas.xmlsoap.org/wsdl/http/> xmlsoap.org/wsdl/http/" xmlns:ax21="S2" xmlns:xs="http://www.w3. <http://www.w3.org/2001/XMLSchema> org/2001/XMLSchema" xmlns:soap="http://schemas. <http://schemas.xmlsoap.org/wsdl/soap/> xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas. <http://schemas.xmlsoap.org/wsdl/mime/> xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas. <http://schemas.xmlsoap.org/wsdl/soap12/> xmlsoap.org/wsdl/soap12/" targetNamespace="http://ws.wso2. <http://ws.wso2.org/dataservice> org/dataservice"> - <wsdl:types> - <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="S2"> - <xs:element name="GetAllSched"> - <xs:complexType> <xs:sequence /> </xs:complexType> </xs:element> - <xs:complexType name="Jobs"> - <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="Job" nillable="true" type="ax21:Job" /> </xs:sequence> </xs:complexType> <xs:element name="Jobs" type="ax21:Jobs" /> - <xs:complexType name="Job"> - <xs:sequence> <xs:element minOccurs="0" name="jobnum" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="SpecialShipping" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="OriginalMailDate" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="maildate1" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="mailqty" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="clientname" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ProductionComplete" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ShopNote" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="creatdue" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="creatdone" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ListDue" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ListDone" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Outsource" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ActualQty" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Press2clr" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Press4clr" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Press10Env" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Press9Env" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Press4clrEnv" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="LaserRoom" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="FlowMasterMM" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="FlowMasterSTD" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Inserting" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="InkJet" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="LaserLetter" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema> </wsdl:types> - <wsdl:message name="GetAllSchedRequest"> <wsdl:part name="parameters" element="ax21:GetAllSched" /> </wsdl:message> - <wsdl:message name="GetAllSchedResponse"> <wsdl:part name="parameters" element="ax21:Jobs" /> </wsdl:message> - <wsdl:portType name="S2_MasterSchedPortType"> - <wsdl:operation name="GetAllSched"> <wsdl:input message="ns1:GetAllSchedRequest" wsaw:Action="urn:GetAllSched" /> <wsdl:output message="ns1:GetAllSchedResponse" wsaw:Action="urn:GetAllSchedResponse" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="S2_MasterSchedSoap11Binding" type="ns1:S2_MasterSchedPortType"> <soap:binding transport="http://schemas. <http://schemas.xmlsoap.org/soap/http> xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="GetAllSched"> <soap:operation soapAction="urn:GetAllSched" style="document" /> - <wsdl:input> <soap:body use="literal" /> </wsdl:input> - <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:binding name="S2_MasterSchedSoap12Binding" type="ns1:S2_MasterSchedPortType"> <soap12:binding transport="http://schemas. <http://schemas.xmlsoap.org/soap/http> xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="GetAllSched"> <soap12:operation soapAction="urn:GetAllSched" style="document" /> - <wsdl:input> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:binding name="S2_MasterSchedHttpBinding" type="ns1:S2_MasterSchedPortType"> <http:binding verb="POST" /> - <wsdl:operation name="GetAllSched"> <http:operation location="GetAllSched" /> - <wsdl:input> <mime:content type="text/xml" part="GetAllSched" /> </wsdl:input> - <wsdl:output> <mime:content type="text/xml" part="GetAllSched" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="S2_MasterSched"> - <wsdl:port name="S2_MasterSchedHttpSoap11Endpoint" binding="ns1:S2_MasterSchedSoap11Binding"> <soap:address location="http://10.0. <http://10.0.1.112:9763/services/S2_MasterSched.S2_MasterSchedHttpSoap11Endp oint/> 1.112:9763/services/S2_MasterSched.S2_MasterSchedHttpSoap11Endpoint/" /> </wsdl:port> - <wsdl:port name="S2_MasterSchedHttpsSoap11Endpoint" binding="ns1:S2_MasterSchedSoap11Binding"> <soap:address location="https://10.0. <https://10.0.1.112:9443/services/S2_MasterSched.S2_MasterSchedHttpsSoap11En dpoint/> 1.112:9443/services/S2_MasterSched.S2_MasterSchedHttpsSoap11Endpoint/" /> </wsdl:port> - <wsdl:port name="S2_MasterSchedHttpSoap12Endpoint" binding="ns1:S2_MasterSchedSoap12Binding"> <soap12:address location="http://10.0. <http://10.0.1.112:9763/services/S2_MasterSched.S2_MasterSchedHttpSoap12Endp oint/> 1.112:9763/services/S2_MasterSched.S2_MasterSchedHttpSoap12Endpoint/" /> </wsdl:port> - <wsdl:port name="S2_MasterSchedHttpsSoap12Endpoint" binding="ns1:S2_MasterSchedSoap12Binding"> <soap12:address location="https://10.0. <https://10.0.1.112:9443/services/S2_MasterSched.S2_MasterSchedHttpsSoap12En dpoint/> 1.112:9443/services/S2_MasterSched.S2_MasterSchedHttpsSoap12Endpoint/" /> </wsdl:port> - <wsdl:port name="S2_MasterSchedHttpEndpoint" binding="ns1:S2_MasterSchedHttpBinding"> <http:address location="http://10.0. <http://10.0.1.112:9763/services/S2_MasterSched.S2_MasterSchedHttpEndpoint/> 1.112:9763/services/S2_MasterSched.S2_MasterSchedHttpEndpoint/" /> </wsdl:port> - <wsdl:port name="S2_MasterSchedHttpsEndpoint" binding="ns1:S2_MasterSchedHttpBinding"> <http:address location="https://10.0. <https://10.0.1.112:9443/services/S2_MasterSched.S2_MasterSchedHttpsEndpoint /> 1.112:9443/services/S2_MasterSched.S2_MasterSchedHttpsEndpoint/" /> </wsdl:port> </wsdl:service> </wsdl:definitions> datas1:Jobs xmlns:xml="http://www.w3. <http://www.w3.org/XML/1998/namespace> org/XML/1998/namespace" xmlns:datas1="S2"> <datas1:Job> <datas1:jobnum>521769A </datas1:jobnum> <datas1:SpecialShipping /> <datas1:OriginalMailDate>2007-10-10 00:00:00</datas1:OriginalMailDate> <datas1:maildate1>2007-10-17 00:00:00</datas1:maildate1> <datas1:mailqty>121000</datas1:mailqty> <datas1:clientname>Laureate Education, Inc.</datas1:clientname> <datas1:ProductionComplete>0</datas1:ProductionComplete> <datas1:ShopNote>X</datas1:ShopNote> <datas1:creatdue>2007-10-08 00:00:00</datas1:creatdue> <datas1:creatdone>2007-10-05 00:00:00</datas1:creatdone> <datas1:ListDue>2007-10-11 00:00:00</datas1:ListDue> <datas1:ListDone>2007-10-11 00:00:00</datas1:ListDone> <datas1:Outsource /> <datas1:ActualQty /> <datas1:Press2clr /> <datas1:Press4clr>2007-10-15 00:00:00</datas1:Press4clr> <datas1:Press10Env>2007-10-17 00:00:00</datas1:Press10Env> <datas1:Press9Env /> <datas1:Press4clrEnv /> <datas1:LaserRoom>2007-10-16 00:00:00</datas1:LaserRoom> <datas1:FlowMasterMM /> <datas1:FlowMasterSTD /> <datas1:Inserting /> <datas1:InkJet /> <datas1:LaserLetter>2007-10-15 00:00:00</datas1:LaserLetter> </datas1:Job>