I think we are returning arrays. I will give java.util.List a shot. Sounds like that might solve the first problem. Still need to solve this complex string issue.
Thanks --- In flexcoders@yahoogroups.com, "Carson Hager" <[EMAIL PROTECTED]> wrote: > > What return type are you using? We have found that with flex/axis, > returning arrays causes Flex to choke. We instead return java.util.List > instances and Flex can handle the arrays much better. The WSDL is only > slightly different but we don't see Flex mangling the array data like it > was previously. I'm not sure if this applies to you but it helped us > tremendously. The downside so far is that we're getting ComplexString > instances instead of numeric and boolean data types. It's easy enough to > work around temporarily. As a note, we are also taking this up with > Adobe to see if we can get this really fixed. > > > Carson > ____________________________________________ > > Carson Hager > Cynergy Systems, Inc. > http://www.cynergysystems.com <http://www.cynergysystems.com/> > > Email: [EMAIL PROTECTED] > Office: 866-CYNERGY > Mobile: 1.703.489.6466 > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of someguy7_7 > Sent: Thursday, July 06, 2006 7:14 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Beta 3 WebService Result > > > > Actually this is looking more like a bug. I have submitted an example > application to Adobe. All my items are all at the same level in the > xml but flex is interpretting it like the first item is the parent for > the rest of the items. > > Here is the xml returned by my webservice. Flex interprets it like the > london item is the parent of the other 4 items. From what I can see > they are all at the same level. But then I am a newb to this xml stuff. > > <?xml version="1.0" encoding="utf-8"?> > <soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ > <http://schemas.xmlsoap.org/soap/envelope/> " > xmlns:xsd="http://www.w3.org/2001/XMLSchema > <http://www.w3.org/2001/XMLSchema> " > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > <http://www.w3.org/2001/XMLSchema-instance> > "><soapenv:Body><ns1:searchResponse > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xmlns:ns1="urn:IPSWebServices"><body > href="#id0"/></ns1:searchResponse><multiRef id="id0" soapenc:root="0" > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xsi:type="ns2:SearchResponse" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xmlns:ns2="urn:IPSWebServices"> > <items href="#id1"/></multiRef> > <multiRef id="id1" soapenc:root="0" > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> "> > <totalresults xsi:type="xsd:int">5</totalresults> > <item href="#id2"/><item href="#id3"/><item href="#id4"/><item > href="#id5"/> > <item href="#id6"/></multiRef> > <multiRef id="id6" soapenc:root="0" > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> "><row > xsi:type="xsd:int">4</row><keywords > xsi:type="xsd:string"></keywords><imagepath > xsi:type="xsd:string">Cities/</imagepath><imagefile > xsi:type="xsd:string">stlouis.jpg</imagefile><imagewidth > xsi:type="xsd:int">500</imagewidth><imageheight > xsi:type="xsd:int">375</imageheight><description > xsi:type="xsd:string">stlouis</description><memo > xsi:type="xsd:string"></memo><resolution > xsi:type="xsd:float">72.0</resolution><createdwith > xsi:type="xsd:string"></createdwith><copyright > xsi:type="xsd:string"></copyright><readyforpublish > xsi:type="xsd:boolean">true</readyforpublish><maskpath > xsi:type="xsd:string"></maskpath><maskfile > xsi:type="xsd:string"></maskfile><userdata > xsi:type="xsd:string"></userdata><anchorx > xsi:type="xsd:int">250</anchorx><anchory > xsi:type="xsd:int">187</anchory><filesize > xsi:type="xsd:int">38575</filesize><vendorsku > xsi:type="xsd:string">stlouis</vendorsku><datecreated > xsi:type="xsd:date">2006-02-15</datecreated><datemodified > xsi:type="xsd:date">2006-05-22</datemodified><filedate > xsi:type="ns3:date" xsi:nil="true" > xmlns:ns3="http://www.w3.org/1999/XMLSchema > <http://www.w3.org/1999/XMLSchema> "/></multiRef> > <multiRef id="id5" soapenc:root="0" > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> "><row > xsi:type="xsd:int">3</row><keywords > xsi:type="xsd:string"></keywords><imagepath > xsi:type="xsd:string">Cities/</imagepath><imagefile > xsi:type="xsd:string">rio.jpg</imagefile><imagewidth > xsi:type="xsd:int">500</imagewidth><imageheight > xsi:type="xsd:int">375</imageheight><description > xsi:type="xsd:string">rio</description><memo > xsi:type="xsd:string"></memo><resolution > xsi:type="xsd:float">72.0</resolution><createdwith > xsi:type="xsd:string"></createdwith><copyright > xsi:type="xsd:string"></copyright><readyforpublish > xsi:type="xsd:boolean">true</readyforpublish><maskpath > xsi:type="xsd:string"></maskpath><maskfile > xsi:type="xsd:string"></maskfile><userdata > xsi:type="xsd:string"></userdata><anchorx > xsi:type="xsd:int">250</anchorx><anchory > xsi:type="xsd:int">187</anchory><filesize > xsi:type="xsd:int">158116</filesize><vendorsku > xsi:type="xsd:string">rio</vendorsku><datecreated > xsi:type="xsd:date">2006-02-15</datecreated><datemodified > xsi:type="xsd:date">2006-02-15</datemodified><filedate > xsi:type="ns4:date" xsi:nil="true" > xmlns:ns4="http://www.w3.org/1999/XMLSchema > <http://www.w3.org/1999/XMLSchema> "/></multiRef> > <multiRef id="id4" soapenc:root="0" > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> "><row > xsi:type="xsd:int">2</row><keywords > xsi:type="xsd:string"></keywords><imagepath > xsi:type="xsd:string">Cities/</imagepath><imagefile > xsi:type="xsd:string">paris.jpg</imagefile><imagewidth > xsi:type="xsd:int">333</imagewidth><imageheight > xsi:type="xsd:int">500</imageheight><description > xsi:type="xsd:string">paris</description><memo > xsi:type="xsd:string"></memo><resolution > xsi:type="xsd:float">1000.0</resolution><createdwith > xsi:type="xsd:string"></createdwith><copyright > xsi:type="xsd:string"></copyright><readyforpublish > xsi:type="xsd:boolean">true</readyforpublish><maskpath > xsi:type="xsd:string"></maskpath><maskfile > xsi:type="xsd:string"></maskfile><userdata > xsi:type="xsd:string"></userdata><anchorx > xsi:type="xsd:int">166</anchorx><anchory > xsi:type="xsd:int">250</anchory><filesize > xsi:type="xsd:int">147927</filesize><vendorsku > xsi:type="xsd:string">paris</vendorsku><datecreated > xsi:type="xsd:date">2006-02-15</datecreated><datemodified > xsi:type="xsd:date">2006-02-15</datemodified><filedate > xsi:type="ns5:date" xsi:nil="true" > xmlns:ns5="http://www.w3.org/1999/XMLSchema > <http://www.w3.org/1999/XMLSchema> "/></multiRef> > <multiRef id="id3" soapenc:root="0" > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> "><row > xsi:type="xsd:int">1</row><keywords > xsi:type="xsd:string"></keywords><imagepath > xsi:type="xsd:string">Cities/</imagepath><imagefile > xsi:type="xsd:string">newyork.jpg</imagefile><imagewidth > xsi:type="xsd:int">500</imagewidth><imageheight > xsi:type="xsd:int">375</imageheight><description > xsi:type="xsd:string">newyork</description><memo > xsi:type="xsd:string"></memo><resolution > xsi:type="xsd:float">200.0</resolution><createdwith > xsi:type="xsd:string"></createdwith><copyright > xsi:type="xsd:string"></copyright><readyforpublish > xsi:type="xsd:boolean">true</readyforpublish><maskpath > xsi:type="xsd:string"></maskpath><maskfile > xsi:type="xsd:string"></maskfile><userdata > xsi:type="xsd:string"></userdata><anchorx > xsi:type="xsd:int">250</anchorx><anchory > xsi:type="xsd:int">187</anchory><filesize > xsi:type="xsd:int">74842</filesize><vendorsku > xsi:type="xsd:string">newyork</vendorsku><datecreated > xsi:type="xsd:date">2006-02-15</datecreated><datemodified > xsi:type="xsd:date">2006-02-15</datemodified><filedate > xsi:type="ns6:date" xsi:nil="true" > xmlns:ns6="http://www.w3.org/1999/XMLSchema > <http://www.w3.org/1999/XMLSchema> "/></multiRef> > <multiRef id="id2" soapenc:root="0" > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> " > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/ > <http://schemas.xmlsoap.org/soap/encoding/> "><row > xsi:type="xsd:int">0</row><keywords > xsi:type="xsd:string"></keywords><imagepath > xsi:type="xsd:string">Cities/</imagepath><imagefile > xsi:type="xsd:string">london.jpg</imagefile><imagewidth > xsi:type="xsd:int">500</imagewidth><imageheight > xsi:type="xsd:int">375</imageheight><description > xsi:type="xsd:string">london</description><memo > xsi:type="xsd:string"></memo><resolution > xsi:type="xsd:float">180.0</resolution><createdwith > xsi:type="xsd:string"></createdwith><copyright > xsi:type="xsd:string"></copyright><readyforpublish > xsi:type="xsd:boolean">true</readyforpublish><maskpath > xsi:type="xsd:string"></maskpath><maskfile > xsi:type="xsd:string"></maskfile><userdata > xsi:type="xsd:string"></userdata><anchorx > xsi:type="xsd:int">250</anchorx><anchory > xsi:type="xsd:int">187</anchory><filesize > xsi:type="xsd:int">56221</filesize><vendorsku > xsi:type="xsd:string">london</vendorsku><datecreated > xsi:type="xsd:date">2006-02-15</datecreated><datemodified > xsi:type="xsd:date">2006-02-15</datemodified><filedate > xsi:type="ns7:date" xsi:nil="true" > xmlns:ns7="http://www.w3.org/1999/XMLSchema > <http://www.w3.org/1999/XMLSchema> "/></multiRef> > </soapenv:Body></soapenv:Envelope> > > Thanks > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Tom Jordahl" <tjordahl@> wrote: > > > > > > The important thing with tns1:string vs. s:string is that the > > namespace prefixes (tns1 and s) point to the XML Schema namespace: > > xmlns:xsd="http://www.w3.org/2001/XMLSchema > <http://www.w3.org/2001/XMLSchema> " > > > > In general with Axis, 'tns1' points to something other than XML > > Schema, for instance (from a ColdFusion CFC web service): > > xmlns:tns1="http://rpc.xml.coldfusion <http://rpc.xml.coldfusion> " > > > > I hope that helps a little > > -- > > Tom Jordahl > > Adobe > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> , "someguy7_7" <bmcpheeters@> > wrote: > > > > > > Mine have type="s:string" as well. I also have a field called > > > totalresults that is at the same level as the items which is an > > > integer and seems to be fine. I am able to reference that using > > > lastResult.totalresults. The strings for category and categoryid are > > > the ones I am having problems with. > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> , "Kelly Birr" <kelly.fx@> wrote: > > > > > > > > The only difference I can see between your WSDL and mine is that > > > mine has > > > > type="s:string" in the simple string elements. I've looked > > through my > > > > services and have found type="tns:whatever" in some places and > > flex does > > > > interpret those as more complex types. > > > > > > > > I can only assume this is what's happening to you. If you have > > > control over > > > > your WSDL you may try type="s:string". I had to do something > > > similar in my > > > > .NET web services to get the WSDL to read type="s:string" instead > of > > > > type="s:dateTime" for date/time values so Flex would leave them as > > > strings > > > > and not convert them to Date objects and mess up the time zone. > > > > > > > > - Kelly > > > > > > > > -----Original Message----- > > > > From: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > > [mailto:flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> ] On > > > > Behalf Of someguy7_7 > > > > Sent: Tuesday, July 04, 2006 10:32 PM > > > > To: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > > > > Subject: [flexcoders] Re: Beta 3 WebService Result > > > > > > > > Our webservices are written in J2EE 1.5 with Axis. I can get the > > > specific > > > > version of Axis if you think it matters. > > > > > > > > Here is part of wsdl that pertains to the question. Sorry about > the > > > > formatting. > > > > > > > > <complexType name="SearchResponse"> > > > > <sequence> > > > > <element maxOccurs="1" minOccurs="0" name="items" nillable="true"> > > > > <complexType> > > > > <sequence> > > > > <element maxOccurs="1" minOccurs="0" name="totalresults" > > > > type="tns1:int"/> > > > > <element maxOccurs="unbounded" minOccurs="0" name="item" > > > > nillable="true"> > > > > <complexType> > > > > <sequence> > > > > <element maxOccurs="1" minOccurs="0" name="category" > > > > type="tns1:string"/> > > > > <element maxOccurs="1" minOccurs="0" > > > > name="categoryid" > > > > type="tns1:string"/> > > > > </sequence> > > > > </complexType> > > > > </element> > > > > </sequence> > > > > </complexType> > > > > </element> > > > > </sequence> > > > > </complexType> > > > > > > > > > > > > Thanks > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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 <*> 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/